Uses of Class
net.minecraft.block.entity.BlockEntity
Package
Description
-
Uses of BlockEntity in net.minecraft.block
Modifier and TypeMethodDescriptionprotected static <T extends BlockEntity>
@Nullable BlockEntityTicker<T>AbstractFurnaceBlock.checkType
(World world, BlockEntityType<T> givenType, BlockEntityType<? extends AbstractFurnaceBlockEntity> expectedType) protected static <E extends BlockEntity,
A extends BlockEntity>
@Nullable BlockEntityTicker<A>BlockWithEntity.checkType
(BlockEntityType<A> givenType, BlockEntityType<E> expectedType, BlockEntityTicker<? super E> ticker) Returns the ticker if the given type and expected type are the same, or null if they are different.protected static <E extends BlockEntity,
A extends BlockEntity>
@Nullable BlockEntityTicker<A>BlockWithEntity.checkType
(BlockEntityType<A> givenType, BlockEntityType<E> expectedType, BlockEntityTicker<? super E> ticker) Returns the ticker if the given type and expected type are the same, or null if they are different.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>AbstractBlock.AbstractBlockState.getBlockEntityTicker
(World world, BlockEntityType<T> blockEntityType) default <T extends BlockEntity>
@Nullable GameEventListenerBlockEntityProvider.getGameEventListener
(World world, T blockEntity) <T extends BlockEntity>
@Nullable GameEventListenerSculkSensorBlock.getGameEventListener
(World world, T blockEntity) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>AbstractSkullBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>BeaconBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>BeehiveBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>BellBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>BlastFurnaceBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) default <T extends BlockEntity>
@Nullable BlockEntityTicker<T>BlockEntityProvider.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>BrewingStandBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>CampfireBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>ChestBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>ConduitBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>DaylightDetectorBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>EnchantingTableBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>EnderChestBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>EndGatewayBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>FurnaceBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>HopperBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>PistonExtensionBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>SculkSensorBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>ShulkerBoxBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>SmokerBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>SpawnerBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) static <S extends BlockEntity>
DoubleBlockProperties.PropertySource<S>DoubleBlockProperties.toPropertySource
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockProperties.Type> typeMapper, Function<BlockState, Direction> function, DirectionProperty directionProperty, BlockState state, WorldAccess world, BlockPos pos, BiPredicate<WorldAccess, BlockPos> fallbackTester) Modifier and TypeMethodDescriptionAbstractBannerBlock.createBlockEntity
(BlockPos pos, BlockState state) AbstractSignBlock.createBlockEntity
(BlockPos pos, BlockState state) AbstractSkullBlock.createBlockEntity
(BlockPos pos, BlockState state) BarrelBlock.createBlockEntity
(BlockPos pos, BlockState state) BeaconBlock.createBlockEntity
(BlockPos pos, BlockState state) BedBlock.createBlockEntity
(BlockPos pos, BlockState state) BeehiveBlock.createBlockEntity
(BlockPos pos, BlockState state) BellBlock.createBlockEntity
(BlockPos pos, BlockState state) BlastFurnaceBlock.createBlockEntity
(BlockPos pos, BlockState state) BlockEntityProvider.createBlockEntity
(BlockPos pos, BlockState state) BrewingStandBlock.createBlockEntity
(BlockPos pos, BlockState state) CampfireBlock.createBlockEntity
(BlockPos pos, BlockState state) ChestBlock.createBlockEntity
(BlockPos pos, BlockState state) CommandBlock.createBlockEntity
(BlockPos pos, BlockState state) ComparatorBlock.createBlockEntity
(BlockPos pos, BlockState state) ConduitBlock.createBlockEntity
(BlockPos pos, BlockState state) DaylightDetectorBlock.createBlockEntity
(BlockPos pos, BlockState state) DispenserBlock.createBlockEntity
(BlockPos pos, BlockState state) DropperBlock.createBlockEntity
(BlockPos pos, BlockState state) EnchantingTableBlock.createBlockEntity
(BlockPos pos, BlockState state) EnderChestBlock.createBlockEntity
(BlockPos pos, BlockState state) EndGatewayBlock.createBlockEntity
(BlockPos pos, BlockState state) EndPortalBlock.createBlockEntity
(BlockPos pos, BlockState state) FurnaceBlock.createBlockEntity
(BlockPos pos, BlockState state) HopperBlock.createBlockEntity
(BlockPos pos, BlockState state) JigsawBlock.createBlockEntity
(BlockPos pos, BlockState state) JukeboxBlock.createBlockEntity
(BlockPos pos, BlockState state) LecternBlock.createBlockEntity
(BlockPos pos, BlockState state) PistonExtensionBlock.createBlockEntity
(BlockPos pos, BlockState state) SculkSensorBlock.createBlockEntity
(BlockPos pos, BlockState state) ShulkerBoxBlock.createBlockEntity
(BlockPos pos, BlockState state) SmokerBlock.createBlockEntity
(BlockPos pos, BlockState state) SpawnerBlock.createBlockEntity
(BlockPos pos, BlockState state) StructureBlock.createBlockEntity
(BlockPos pos, BlockState state) TrappedChestBlock.createBlockEntity
(BlockPos pos, BlockState state) 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 stack) void
Block.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) void
IceBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) void
TallPlantBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) void
TurtleEggBlock.afterBreak
(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) 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, Entity entity, ItemStack stack) 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) -
Uses of BlockEntity in net.minecraft.block.entity
Modifier and TypeInterfaceDescriptioninterface
BlockEntityTicker<T extends BlockEntity>
class
BlockEntityType<T extends BlockEntity>
private static interface
BlockEntityType.BlockEntityFactory<T extends BlockEntity>
static final class
BlockEntityType.Builder<T extends BlockEntity>
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
A piston block entity represents the block being pushed by a piston.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) private static <T extends BlockEntity>
BlockEntityType<T>BlockEntityType.create
(String id, BlockEntityType.Builder<T> builder) Modifier and TypeMethodDescriptionstatic @Nullable BlockEntity
BlockEntity.createFromNbt
(BlockPos pos, BlockState state, NbtCompound nbt) -
Uses of BlockEntity in net.minecraft.block.pattern
-
Uses of BlockEntity in net.minecraft.client
Modifier and TypeMethodDescriptionprivate ItemStack
MinecraftClient.addBlockEntityNbt
(ItemStack stack, BlockEntity blockEntity) -
Uses of BlockEntity in net.minecraft.client.render
Modifier and TypeFieldDescriptionprivate final Set<BlockEntity>
WorldRenderer.noCullingBlockEntities
Modifier and TypeMethodDescriptionstatic SpriteIdentifier
TexturedRenderLayers.getChestTexture
(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 & ChestAnimationProgress>
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 matrix, VertexConsumerProvider vertexConsumerProvider) 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
Modifier and TypeMethodDescriptionprivate <E extends BlockEntity>
voidChunkBuilder.BuiltChunk.RebuildTask.addBlockEntity
(ChunkBuilder.ChunkData data, Set<BlockEntity> blockEntities, E blockEntity) Modifier and TypeMethodDescriptionChunkRendererRegion.getBlockEntity
(BlockPos pos) ChunkRendererRegion.getBlockEntity
(BlockPos pos, WorldChunk.CreationType creationType) Modifier and TypeMethodDescriptionChunkBuilder.ChunkData.getBlockEntities()
private Set<BlockEntity>
ChunkBuilder.BuiltChunk.RebuildTask.render
(float cameraX, float cameraY, float cameraZ, ChunkBuilder.ChunkData data, BlockBufferBuilderStorage buffers) Modifier and TypeMethodDescriptionprivate <E extends BlockEntity>
voidChunkBuilder.BuiltChunk.RebuildTask.addBlockEntity
(ChunkBuilder.ChunkData data, Set<BlockEntity> blockEntities, E blockEntity) (package private) void
ChunkBuilder.BuiltChunk.setNoCullingBlockEntities
(Set<BlockEntity> noCullingBlockEntities) -
Uses of BlockEntity in net.minecraft.command
-
Uses of BlockEntity in net.minecraft.loot.context
Modifier and TypeFieldDescriptionstatic final LootContextParameter<BlockEntity>
LootContextParameters.BLOCK_ENTITY
-
Uses of BlockEntity in net.minecraft.screen
Modifier and TypeMethodDescriptionstatic int
ScreenHandler.calculateComparatorOutput
(@Nullable BlockEntity entity) -
Uses of BlockEntity in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate void
ServerPlayerEntity.sendBlockEntityUpdate
(BlockEntity blockEntity) -
Uses of BlockEntity in net.minecraft.test
-
Uses of BlockEntity in net.minecraft.util.math
Modifier and TypeMethodDescription<T extends BlockEntity>
TBlockPointer.getBlockEntity()
<T extends BlockEntity>
TBlockPointerImpl.getBlockEntity()
-
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) ChunkRegion.getBlockEntity
(BlockPos pos) EmptyBlockView.getBlockEntity
(BlockPos pos) World.getBlockEntity
(BlockPos pos) -
Uses of BlockEntity in net.minecraft.world.chunk
Modifier and TypeClassDescriptionprivate class
Modifier and TypeFieldDescriptionprivate final T
WorldChunk.DirectBlockEntityTickInvoker.blockEntity
Modifier and TypeFieldDescriptionprivate final Map<BlockPos,
BlockEntity> ProtoChunk.blockEntities
private final Map<BlockPos,
BlockEntity> WorldChunk.blockEntities
Modifier and TypeMethodDescriptionprivate <T extends BlockEntity>
voidWorldChunk.removeGameEventListener
(T blockEntity) private <T extends BlockEntity>
voidWorldChunk.updateGameEventListener
(T blockEntity) 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) EmptyChunk.getBlockEntity
(BlockPos pos, WorldChunk.CreationType creationType) ProtoChunk.getBlockEntity
(BlockPos pos) ReadOnlyChunk.getBlockEntity
(BlockPos pos) WorldChunk.getBlockEntity
(BlockPos pos) WorldChunk.getBlockEntity
(BlockPos pos, WorldChunk.CreationType creationType) private @Nullable BlockEntity
WorldChunk.loadBlockEntity
(BlockPos pos, NbtCompound nbt) Modifier and TypeMethodDescriptionvoid
EmptyChunk.addBlockEntity
(BlockEntity blockEntity) void
WorldChunk.addBlockEntity
(BlockEntity blockEntity) private void
WorldChunk.removeBlockEntity
(BlockEntity blockEntity) void
Chunk.setBlockEntity
(BlockEntity blockEntity) void
EmptyChunk.setBlockEntity
(BlockEntity blockEntity) void
ProtoChunk.setBlockEntity
(BlockEntity blockEntity) void
ReadOnlyChunk.setBlockEntity
(BlockEntity blockEntity) void
WorldChunk.setBlockEntity
(BlockEntity blockEntity)