Interface BlockBasedImmersiveInfo

All Superinterfaces:
ImmersiveInfo
All Known Subinterfaces:
BuiltBlockBasedImmersiveInfo<E>
All Known Implementing Classes:
AbstractBlockBasedImmersiveInfo, BeaconInfo, BuiltBlockBasedImmersiveInfoImpl, ChestInfo, DragImmersiveInfo, LecternInfo

public non-sealed interface BlockBasedImmersiveInfo extends ImmersiveInfo
The ImmersiveInfo implementation for block-based Immersives.
See Also:
  • Method Details

    • getBlockPosition

      net.minecraft.core.BlockPos getBlockPosition()
      Gets the block position of the block this ImmersiveInfo represents. This function should always return the same value for an individual ImmersiveInfo instance, and this function may be called after the block at this position no longer matches the Immersive it represents.
      For example, if this ImmersiveInfo was used to represent a furnace that was initially placed at x=1, y=2, and z=3, this function should always return the position x=1, y=2, and z=3, even after the furnace is destroyed or replaced by some other block.
      Returns:
      The position of the block this ImmersiveInfo represents.