Uses of Class
net.minecraft.block.entity.BlockEntity
Package
Description
The base package for all Minecraft classes.
-
Uses of BlockEntity in net.minecraft
Modifier and TypeFieldDescriptionfinal List
<BlockEntity> class_9810.class_9811.field_52166
final List
<BlockEntity> class_9810.class_9811.field_52167
Modifier and TypeMethodDescriptionprivate <E extends BlockEntity>
voidclass_9810.method_60902
(class_9810.class_9811 class_9811, E e) -
Uses of BlockEntity in net.minecraft.block
Modifier and TypeMethodDescription<T extends BlockEntity>
@Nullable BlockEntityTicker<T> AbstractBlock.AbstractBlockState.getBlockEntityTicker
(World world, BlockEntityType<T> blockEntityType) default <T extends BlockEntity>
@Nullable GameEventListenerBlockEntityProvider.getGameEventListener
(ServerWorld world, T blockEntity) Returns the game event listener for the block's block entity, ornull
if the block entity does not listen to game events.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> AbstractSignBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> AbstractSkullBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> BeaconBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> BeehiveBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> BellBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> BlastFurnaceBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.default <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BlockEntityProvider.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> BrewingStandBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> CalibratedSculkSensorBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> CampfireBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> ChestBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> ConduitBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> CrafterBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> DaylightDetectorBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> EnchantingTableBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> EnderChestBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> EndGatewayBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> FurnaceBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> HangingSignBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> HopperBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> JukeboxBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> PistonExtensionBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> SculkCatalystBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> SculkSensorBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> SculkShriekerBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> ShulkerBoxBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> SmokerBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> SpawnerBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> TrialSpawnerBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> VaultBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> WallHangingSignBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.static <S extends BlockEntity>
DoubleBlockProperties.PropertySource<S> DoubleBlockProperties.toPropertySource
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockProperties.Type> typeMapper, Function<BlockState, Direction> directionMapper, DirectionProperty directionProperty, BlockState state, WorldAccess world, BlockPos pos, BiPredicate<WorldAccess, BlockPos> fallbackTester) protected static <T extends BlockEntity>
@Nullable BlockEntityTicker<T> AbstractFurnaceBlock.validateTicker
(World world, BlockEntityType<T> givenType, BlockEntityType<? extends AbstractFurnaceBlockEntity> expectedType) protected static <E extends BlockEntity,
A extends BlockEntity>
@Nullable BlockEntityTicker<A> BlockWithEntity.validateTicker
(BlockEntityType<A> givenType, BlockEntityType<E> expectedType, BlockEntityTicker<? super E> ticker) Returns the ticker if the given type and expected type are the same, ornull
if they are different.protected static <E extends BlockEntity,
A extends BlockEntity>
@Nullable BlockEntityTicker<A> BlockWithEntity.validateTicker
(BlockEntityType<A> givenType, BlockEntityType<E> expectedType, BlockEntityTicker<? super E> ticker) Returns the ticker if the given type and expected type are the same, ornull
if they are different.Modifier and TypeMethodDescriptionAbstractBannerBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.AbstractSignBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.AbstractSkullBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BarrelBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BeaconBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BedBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BeehiveBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BellBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BlastFurnaceBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BlockEntityProvider.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BrewingStandBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.BrushableBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.CalibratedSculkSensorBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.CampfireBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.ChestBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.ChiseledBookshelfBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.CommandBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.ComparatorBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.ConduitBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.CrafterBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.DaylightDetectorBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.DecoratedPotBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.DispenserBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.DropperBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.EnchantingTableBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.EnderChestBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.EndGatewayBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.EndPortalBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.FurnaceBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.HangingSignBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.HopperBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.JigsawBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.JukeboxBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.LecternBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.PistonExtensionBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SculkCatalystBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SculkSensorBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SculkShriekerBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.ShulkerBoxBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SmokerBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.SpawnerBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.StructureBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.TrappedChestBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.TrialSpawnerBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.VaultBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.WallHangingSignBlock.createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.static BlockEntity
PistonExtensionBlock.createBlockEntityPiston
(BlockPos pos, BlockState state, BlockState pushedBlock, Direction facing, boolean extending, boolean source) Modifier and TypeMethodDescriptionvoid
BeehiveBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.void
Block.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.void
IceBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.void
TallPlantBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.void
TurtleEggBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.static void
Block.dropStacks
(BlockState state, WorldAccess world, BlockPos pos, @Nullable BlockEntity blockEntity) static void
Block.dropStacks
(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack tool) Block.getDroppedStacks
(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity) Block.getDroppedStacks
(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack) private void
CrafterBlock.setTriggered
(@Nullable BlockEntity blockEntity, boolean triggered) -
Uses of BlockEntity in net.minecraft.block.entity
Modifier and TypeInterfaceDescriptioninterface
BlockEntityTicker<T extends BlockEntity>
A functional interface that ticks a block entity.class
BlockEntityType<T extends BlockEntity>
Represents a type of block entities.private static interface
BlockEntityType.BlockEntityFactory<T extends BlockEntity>
A functional interface for a factory that creates a new block entity instance.static final class
BlockEntityType.Builder<T extends BlockEntity>
Builder forBlockEntityType
.Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
A piston block entity represents the block being pushed by a piston.class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionstatic <T extends BlockEntity>
BlockEntityType.Builder<T> BlockEntityType.Builder.create
(BlockEntityType.BlockEntityFactory<? extends T> factory, Block[] blocks) Returns a new builder of a block entity type that supportsblocks
.private static <T extends BlockEntity>
BlockEntityType<T> BlockEntityType.create
(String id, BlockEntityType.Builder<T> builder) Modifier and TypeMethodDescriptionDecoratedPotBlockEntity.asBlockEntity()
JukeboxBlockEntity.asBlockEntity()
static @Nullable BlockEntity
BlockEntity.createFromNbt
(BlockPos pos, BlockState state, NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Returns the new block entity loaded fromnbt
, ornull
if it fails. -
Uses of BlockEntity in net.minecraft.block.pattern
-
Uses of BlockEntity in net.minecraft.client
Modifier and TypeMethodDescriptionprivate void
MinecraftClient.addBlockEntityNbt
(ItemStack stack, BlockEntity blockEntity, DynamicRegistryManager registryManager) -
Uses of BlockEntity in net.minecraft.client.render
Modifier and TypeFieldDescriptionprivate final Set
<BlockEntity> WorldRenderer.noCullingBlockEntities
Modifier and TypeMethodDescriptionstatic SpriteIdentifier
TexturedRenderLayers.getChestTextureId
(BlockEntity blockEntity, ChestType type, boolean christmas) Modifier and TypeMethodDescriptionvoid
WorldRenderer.updateNoCullingBlockEntities
(Collection<BlockEntity> removed, Collection<BlockEntity> added) -
Uses of BlockEntity in net.minecraft.client.render.block.entity
Modifier and TypeInterfaceDescriptioninterface
BlockEntityRenderer<T extends BlockEntity>
interface
BlockEntityRendererFactory<T extends BlockEntity>
class
ChestBlockEntityRenderer<T extends BlockEntity & LidOpenable>
class
LightmapCoordinatesRetriever<S extends BlockEntity>
Modifier and TypeMethodDescription<E extends BlockEntity>
@Nullable BlockEntityRenderer<E> BlockEntityRenderDispatcher.get
(E blockEntity) private static <T extends BlockEntity>
voidBlockEntityRendererFactories.register
(BlockEntityType<? extends T> type, BlockEntityRendererFactory<T> factory) <E extends BlockEntity>
voidBlockEntityRenderDispatcher.render
(E blockEntity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers) private static <T extends BlockEntity>
voidBlockEntityRenderDispatcher.render
(BlockEntityRenderer<T> renderer, T blockEntity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers) <E extends BlockEntity>
booleanBlockEntityRenderDispatcher.renderEntity
(E entity, MatrixStack matrix, VertexConsumerProvider vertexConsumerProvider, int light, int overlay) Modifier and TypeMethodDescriptionprivate static void
BlockEntityRenderDispatcher.runReported
(BlockEntity blockEntity, Runnable runnable) -
Uses of BlockEntity in net.minecraft.client.render.chunk
Modifier and TypeFieldDescriptionprivate final Set
<BlockEntity> ChunkBuilder.BuiltChunk.blockEntities
(package private) final List
<BlockEntity> ChunkBuilder.ChunkData.blockEntities
private final Map
<BlockPos, BlockEntity> RenderedChunk.blockEntities
Modifier and TypeMethodDescriptionChunkRendererRegion.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.RenderedChunk.getBlockEntity
(BlockPos pos) Modifier and TypeMethodDescription(package private) void
ChunkBuilder.BuiltChunk.setNoCullingBlockEntities
(Collection<BlockEntity> blockEntities) -
Uses of BlockEntity in net.minecraft.command
-
Uses of BlockEntity in net.minecraft.component.type
Modifier and TypeMethodDescriptionboolean
NbtComponent.applyToBlockEntity
(BlockEntity blockEntity, RegistryWrapper.WrapperLookup registryLookup) -
Uses of BlockEntity in net.minecraft.inventory
Modifier and TypeMethodDescriptionSingleStackInventory.SingleStackBlockEntityInventory.asBlockEntity()
Modifier and TypeMethodDescriptionstatic boolean
Inventory.canPlayerUse
(BlockEntity blockEntity, PlayerEntity player) Returns whetherplayer
can use thisblockEntity
.static boolean
Inventory.canPlayerUse
(BlockEntity blockEntity, PlayerEntity player, float range) Returns whetherplayer
can use thisblockEntity
. -
Uses of BlockEntity in net.minecraft.loot.context
Modifier and TypeFieldDescriptionstatic final LootContextParameter
<BlockEntity> LootContextParameters.BLOCK_ENTITY
-
Uses of BlockEntity in net.minecraft.network.packet.s2c.play
Modifier and TypeMethodDescriptionstatic BlockEntityUpdateS2CPacket
BlockEntityUpdateS2CPacket.create
(BlockEntity blockEntity) static BlockEntityUpdateS2CPacket
BlockEntityUpdateS2CPacket.create
(BlockEntity blockEntity, BiFunction<BlockEntity, DynamicRegistryManager, NbtCompound> nbtGetter) (package private) static ChunkData.BlockEntityData
ChunkData.BlockEntityData.of
(BlockEntity blockEntity) Modifier and TypeMethodDescriptionstatic BlockEntityUpdateS2CPacket
BlockEntityUpdateS2CPacket.create
(BlockEntity blockEntity, BiFunction<BlockEntity, DynamicRegistryManager, NbtCompound> nbtGetter) -
Uses of BlockEntity in net.minecraft.predicate
Modifier and TypeMethodDescriptionprivate static boolean
BlockPredicate.testBlockEntity
(WorldView world, @Nullable BlockEntity blockEntity, NbtPredicate nbtPredicate) -
Uses of BlockEntity in net.minecraft.screen
Modifier and TypeMethodDescriptionstatic int
ScreenHandler.calculateComparatorOutput
(@Nullable BlockEntity entity) -
Uses of BlockEntity in net.minecraft.test
Modifier and TypeMethodDescription<T extends BlockEntity>
voidTestContext.checkBlockEntity
(BlockPos pos, Predicate<T> predicate, Supplier<String> errorMessageSupplier) <T extends BlockEntity>
TTestContext.getBlockEntity
(BlockPos pos) -
Uses of BlockEntity in net.minecraft.world
Modifier and TypeMethodDescriptiondefault <T extends BlockEntity>
Optional<T> BlockView.getBlockEntity
(BlockPos pos, BlockEntityType<T> type) default <T extends BlockEntity>
Optional<T> RegistryWorldView.getBlockEntity
(BlockPos pos, BlockEntityType<T> type) <T extends BlockEntity>
Optional<T> TestableWorld.getBlockEntity
(BlockPos pos, BlockEntityType<T> type) Modifier and TypeMethodDescriptionBlockView.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.ChunkRegion.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.EmptyBlockView.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.World.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none. -
Uses of BlockEntity in net.minecraft.world.chunk
Modifier and TypeClassDescriptionprivate class
Modifier and TypeFieldDescriptionprivate final T
WorldChunk.DirectBlockEntityTickInvoker.blockEntity
Modifier and TypeMethodDescriptionprivate <T extends BlockEntity>
voidWorldChunk.removeGameEventListener
(T blockEntity, ServerWorld world) private <T extends BlockEntity>
voidWorldChunk.updateGameEventListener
(T blockEntity, ServerWorld world) private <T extends BlockEntity>
voidWorldChunk.updateTicker
(T blockEntity) private <T extends BlockEntity>
BlockEntityTickInvokerWorldChunk.wrapTicker
(T blockEntity, BlockEntityTicker<T> blockEntityTicker) Modifier and TypeMethodDescriptionprivate @Nullable BlockEntity
WorldChunk.createBlockEntity
(BlockPos pos) ChunkCache.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.EmptyChunk.getBlockEntity
(BlockPos pos, WorldChunk.CreationType creationType) ProtoChunk.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.WorldChunk.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.WorldChunk.getBlockEntity
(BlockPos pos, WorldChunk.CreationType creationType) WrapperProtoChunk.getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.private @Nullable BlockEntity
WorldChunk.loadBlockEntity
(BlockPos pos, NbtCompound nbt) Modifier and TypeMethodDescriptionvoid
EmptyChunk.addBlockEntity
(BlockEntity blockEntity) void
WorldChunk.addBlockEntity
(BlockEntity blockEntity) abstract void
Chunk.setBlockEntity
(BlockEntity blockEntity) void
EmptyChunk.setBlockEntity
(BlockEntity blockEntity) void
ProtoChunk.setBlockEntity
(BlockEntity blockEntity) void
WorldChunk.setBlockEntity
(BlockEntity blockEntity) void
WrapperProtoChunk.setBlockEntity
(BlockEntity blockEntity)