Uses of Class
net.minecraft.block.entity.BlockEntity
Packages that use BlockEntity
Package
Description
The base package for all Minecraft classes.
-
Uses of BlockEntity in net.minecraft
Method parameters in net.minecraft with type arguments of type BlockEntityModifier and TypeMethodDescriptionclass_12283.class_12284.method_76221(Function<? super ContextParameter<? extends BlockEntity>, ? extends class_12283<R>> function) -
Uses of BlockEntity in net.minecraft.block
Classes in net.minecraft.block with type parameters of type BlockEntityMethods in net.minecraft.block with type parameters of type BlockEntityModifier 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T> CreakingHeartBlock.getTicker(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, ornullif 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, Property<Direction> facingProperty, 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, ornullif 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, ornullif they are different.Methods in net.minecraft.block that return BlockEntityModifier 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.@Nullable BlockEntityBarrelBlock.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.@Nullable BlockEntityBeehiveBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntityBellBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.BlastFurnaceBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntityBlockEntityProvider.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.BrewingStandBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntityBrushableBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntityCalibratedSculkSensorBlock.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.@Nullable BlockEntityChiseledBookshelfBlock.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.@Nullable BlockEntityCopperGolemStatueBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.CrafterBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.CreakingHeartBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.DaylightDetectorBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntityDecoratedPotBlock.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.@Nullable BlockEntityPistonExtensionBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntitySculkCatalystBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntitySculkSensorBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntitySculkShriekerBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntityShelfBlock.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.@Nullable BlockEntityTestBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntityTestInstanceBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.TrappedChestBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntityTrialSpawnerBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.@Nullable BlockEntityVaultBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.WallHangingSignBlock.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.static BlockEntityPistonExtensionBlock.createBlockEntityPiston(BlockPos pos, BlockState state, BlockState pushedBlock, Direction facing, boolean extending, boolean source) Methods in net.minecraft.block with parameters of type BlockEntityModifier and TypeMethodDescriptionvoidBeehiveBlock.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.voidBlock.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.voidIceBlock.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.voidTallPlantBlock.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.voidTurtleEggBlock.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 voidBeehiveBlock.dropHoneycomb(ServerWorld world, ItemStack tool, BlockState state, @Nullable BlockEntity blockEntity, @Nullable Entity interactingEntity, BlockPos pos) static voidBlock.dropStacks(BlockState state, WorldAccess world, BlockPos pos, @Nullable BlockEntity blockEntity) static voidBlock.dropStacks(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack tool) protected static booleanBlock.generateBlockInteractLoot(ServerWorld world, RegistryKey<LootTable> lootTable, BlockState state, @Nullable BlockEntity blockEntity, @Nullable ItemStack tool, @Nullable Entity interactingEntity, BiConsumer<ServerWorld, ItemStack> lootConsumer) 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 voidCrafterBlock.setTriggered(@Nullable BlockEntity blockEntity, boolean triggered) -
Uses of BlockEntity in net.minecraft.block.entity
Classes in net.minecraft.block.entity with type parameters of type BlockEntityModifier and TypeInterfaceDescriptioninterfaceBlockEntityTicker<T extends BlockEntity>A functional interface that ticks a block entity.classBlockEntityType<T extends BlockEntity>Represents a type of block entities.private static interfaceBlockEntityType.BlockEntityFactory<T extends BlockEntity>A functional interface for a factory that creates a new block entity instance.Subclasses of BlockEntity in net.minecraft.block.entityModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassA piston block entity represents the block being pushed by a piston.classclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.block.entity declared as BlockEntityModifier and TypeFieldDescriptionprivate final BlockEntityBlockEntity.ReporterContext.blockEntityThe field for theblockEntityrecord component.Methods in net.minecraft.block.entity with type parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static <T extends BlockEntity>
BlockEntityType<T> BlockEntityType.create(String id, BlockEntityType.BlockEntityFactory<? extends T> factory, Block[] blocks) Methods in net.minecraft.block.entity that return BlockEntityModifier and TypeMethodDescriptionDecoratedPotBlockEntity.asBlockEntity()JukeboxBlockEntity.asBlockEntity()BlockEntity.ReporterContext.blockEntity()Returns the value of theblockEntityrecord component.static @Nullable BlockEntityBlockEntity.createFromNbt(BlockPos pos, BlockState state, NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Returns the new block entity loaded fromnbt, ornullif it fails.Constructors in net.minecraft.block.entity with parameters of type BlockEntityModifierConstructorDescription(package private)ReporterContext(BlockEntity blockEntity) Creates an instance of aReporterContextrecord class. -
Uses of BlockEntity in net.minecraft.block.pattern
Fields in net.minecraft.block.pattern declared as BlockEntityMethods in net.minecraft.block.pattern that return BlockEntity -
Uses of BlockEntity in net.minecraft.client.render.block
Methods in net.minecraft.client.render.block that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityMovingBlockRenderState.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none. -
Uses of BlockEntity in net.minecraft.client.render.block.entity
Classes in net.minecraft.client.render.block.entity with type parameters of type BlockEntityModifier and TypeClassDescriptionclassBeaconBlockEntityRenderer<T extends BlockEntity & BeamEmitter>interfaceBlockEntityRenderer<T extends BlockEntity,S extends BlockEntityRenderState> interfaceBlockEntityRendererFactory<T extends BlockEntity,S extends BlockEntityRenderState> classChestBlockEntityRenderer<T extends BlockEntity & LidOpenable>classLightmapCoordinatesRetriever<S extends BlockEntity>classMethods in net.minecraft.client.render.block.entity with type parameters of type BlockEntityModifier and TypeMethodDescription<E extends BlockEntity,S extends BlockEntityRenderState>
@Nullable BlockEntityRenderer<E, S> BlockEntityRenderManager.get(E blockEntity) <E extends BlockEntity,S extends BlockEntityRenderState>
@Nullable BlockEntityRenderer<E, S> BlockEntityRenderManager.getByRenderState(S renderState) <E extends BlockEntity,S extends BlockEntityRenderState>
@Nullable SBlockEntityRenderManager.getRenderState(E blockEntity, float tickProgress, @Nullable ModelCommandRenderer.CrumblingOverlayCommand crumblingOverlay) private static <T extends BlockEntity,S extends BlockEntityRenderState>
voidBlockEntityRendererFactories.register(BlockEntityType<? extends T> type, BlockEntityRendererFactory<T, S> factory) static <T extends BlockEntity & BeamEmitter>
voidBeaconBlockEntityRenderer.updateBeaconRenderState(T blockEntity, BeaconBlockEntityRenderState state, float tickProgress, Vec3d cameraPos) static <T extends BlockEntity & StructureBoxRendering>
voidStructureBlockBlockEntityRenderer.updateStructureBoxRenderState(T blockEntity, StructureBlockBlockEntityRenderState state) Methods in net.minecraft.client.render.block.entity with parameters of type BlockEntityModifier and TypeMethodDescriptionChestBlockEntityRenderer.getVariant(BlockEntity blockEntity, boolean christmas) -
Uses of BlockEntity in net.minecraft.client.render.block.entity.state
Methods in net.minecraft.client.render.block.entity.state with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic voidBlockEntityRenderState.updateBlockEntityRenderState(BlockEntity blockEntity, BlockEntityRenderState state, @Nullable ModelCommandRenderer.CrumblingOverlayCommand crumblingOverlay) -
Uses of BlockEntity in net.minecraft.client.render.chunk
Fields in net.minecraft.client.render.chunk with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final List<BlockEntity> ChunkRenderData.blockEntitiesprivate final Map<BlockPos, BlockEntity> RenderedChunk.blockEntitiesfinal List<BlockEntity> SectionBuilder.RenderData.blockEntitiesMethods in net.minecraft.client.render.chunk with type parameters of type BlockEntityModifier and TypeMethodDescriptionprivate <E extends BlockEntity>
voidSectionBuilder.addBlockEntity(SectionBuilder.RenderData data, E blockEntity) Methods in net.minecraft.client.render.chunk that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityChunkRendererRegion.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.@Nullable BlockEntityRenderedChunk.getBlockEntity(BlockPos pos) Methods in net.minecraft.client.render.chunk that return types with arguments of type BlockEntityModifier and TypeMethodDescriptiondefault List<BlockEntity> AbstractChunkRenderData.getBlockEntities()ChunkRenderData.getBlockEntities() -
Uses of BlockEntity in net.minecraft.client.world
Fields in net.minecraft.client.world with type parameters of type BlockEntityMethods in net.minecraft.client.world that return types with arguments of type BlockEntityMethods in net.minecraft.client.world with parameters of type BlockEntity -
Uses of BlockEntity in net.minecraft.command
Fields in net.minecraft.command declared as BlockEntityConstructors in net.minecraft.command with parameters of type BlockEntity -
Uses of BlockEntity in net.minecraft.component.type
Methods in net.minecraft.component.type with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static NbtCompoundBlockPredicatesComponent.getNbt(BlockEntity blockEntity, DynamicRegistryManager registries, ErrorReporter errorReporter) -
Uses of BlockEntity in net.minecraft.entity
Methods in net.minecraft.entity with parameters of type BlockEntityModifier and TypeMethodDescriptionbooleanTypedEntityData.applyToBlockEntity(BlockEntity blockEntity, RegistryWrapper.WrapperLookup registryLookup) -
Uses of BlockEntity in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task declared as BlockEntityModifier and TypeFieldDescriptionprivate final BlockEntityMoveItemsTask.Storage.blockEntityThe field for theblockEntityrecord component.Methods in net.minecraft.entity.ai.brain.task that return BlockEntityModifier and TypeMethodDescriptionMoveItemsTask.Storage.blockEntity()Returns the value of theblockEntityrecord component.Methods in net.minecraft.entity.ai.brain.task with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic @Nullable MoveItemsTask.StorageMoveItemsTask.Storage.forContainer(BlockEntity blockEntity, World world) private static @Nullable InventoryMoveItemsTask.Storage.getInventory(BlockEntity blockEntity, BlockState state, World world, BlockPos pos) private @Nullable MoveItemsTask.StorageMoveItemsTask.getStorageFor(PathAwareEntity entity, World world, BlockEntity blockEntity, Set<GlobalPos> visitedPositions, Set<GlobalPos> unreachablePositions, Box box) Constructors in net.minecraft.entity.ai.brain.task with parameters of type BlockEntityModifierConstructorDescriptionStorage(BlockPos pos, Inventory inventory, BlockEntity blockEntity, BlockState state) Creates an instance of aStoragerecord class. -
Uses of BlockEntity in net.minecraft.inventory
Methods in net.minecraft.inventory that return BlockEntityModifier and TypeMethodDescriptionSingleStackInventory.SingleStackBlockEntityInventory.asBlockEntity()Methods in net.minecraft.inventory with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic booleanInventory.canPlayerUse(BlockEntity blockEntity, PlayerEntity player) Returns whetherplayercan use thisblockEntity.static booleanInventory.canPlayerUse(BlockEntity blockEntity, PlayerEntity player, float range) Returns whetherplayercan use thisblockEntity. -
Uses of BlockEntity in net.minecraft.loot.context
Fields in net.minecraft.loot.context with type parameters of type BlockEntityModifier and TypeFieldDescriptionstatic final ContextParameter<BlockEntity> LootContextParameters.BLOCK_ENTITYprivate final ContextParameter<? extends BlockEntity> LootContext.BlockEntityReference.parameterMethods in net.minecraft.loot.context that return types with arguments of type BlockEntityModifier and TypeMethodDescriptionContextParameter<? extends BlockEntity> LootContext.BlockEntityReference.contextParam()Constructor parameters in net.minecraft.loot.context with type arguments of type BlockEntityModifierConstructorDescriptionprivateBlockEntityReference(String id, ContextParameter<? extends BlockEntity> parameter) -
Uses of BlockEntity in net.minecraft.loot.function
Fields in net.minecraft.loot.function with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final ContextParameter<? extends BlockEntity> CopyComponentsLootFunction.BlockEntityComponentsSource.contextParamThe field for thecontextParamrecord component.Methods in net.minecraft.loot.function that return types with arguments of type BlockEntityModifier and TypeMethodDescriptionContextParameter<? extends BlockEntity> CopyComponentsLootFunction.BlockEntityComponentsSource.contextParam()Returns the value of thecontextParamrecord component.Methods in net.minecraft.loot.function with parameters of type BlockEntityModifier and TypeMethodDescriptionCopyComponentsLootFunction.BlockEntityComponentsSource.getComponents(BlockEntity blockEntity) Method parameters in net.minecraft.loot.function with type arguments of type BlockEntityModifier and TypeMethodDescriptionCopyComponentsLootFunction.blockEntity(ContextParameter<? extends BlockEntity> parameter) Constructor parameters in net.minecraft.loot.function with type arguments of type BlockEntityModifierConstructorDescription(package private)BlockEntityComponentsSource(ContextParameter<? extends BlockEntity> contextParam) Creates an instance of aBlockEntityComponentsSourcerecord class. -
Uses of BlockEntity in net.minecraft.loot.provider.nbt
Fields in net.minecraft.loot.provider.nbt with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final ContextParameter<? extends BlockEntity> ContextLootNbtProvider.BlockEntityTarget.contextParamThe field for thecontextParamrecord component.Methods in net.minecraft.loot.provider.nbt that return types with arguments of type BlockEntityModifier and TypeMethodDescriptionContextParameter<? extends BlockEntity> ContextLootNbtProvider.BlockEntityTarget.contextParam()Returns the value of thecontextParamrecord component.Methods in net.minecraft.loot.provider.nbt with parameters of type BlockEntityModifier and TypeMethodDescriptionContextLootNbtProvider.BlockEntityTarget.getComponents(BlockEntity blockEntity) Constructor parameters in net.minecraft.loot.provider.nbt with type arguments of type BlockEntityModifierConstructorDescriptionprivateBlockEntityTarget(ContextParameter<? extends BlockEntity> contextParam) Creates an instance of aBlockEntityTargetrecord class. -
Uses of BlockEntity in net.minecraft.network.packet.s2c.play
Methods in net.minecraft.network.packet.s2c.play with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic BlockEntityUpdateS2CPacketBlockEntityUpdateS2CPacket.create(BlockEntity blockEntity) static BlockEntityUpdateS2CPacketBlockEntityUpdateS2CPacket.create(BlockEntity blockEntity, BiFunction<BlockEntity, DynamicRegistryManager, NbtCompound> nbtGetter) (package private) static ChunkData.BlockEntityDataChunkData.BlockEntityData.of(BlockEntity blockEntity) Method parameters in net.minecraft.network.packet.s2c.play with type arguments of type BlockEntityModifier and TypeMethodDescriptionstatic BlockEntityUpdateS2CPacketBlockEntityUpdateS2CPacket.create(BlockEntity blockEntity, BiFunction<BlockEntity, DynamicRegistryManager, NbtCompound> nbtGetter) -
Uses of BlockEntity in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static booleanBlockPredicate.testComponents(@Nullable BlockEntity blockEntity, ComponentsPredicate components) private static booleanBlockPredicate.testNbt(WorldView world, @Nullable BlockEntity blockEntity, NbtPredicate nbtPredicate) -
Uses of BlockEntity in net.minecraft.screen
Methods in net.minecraft.screen with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic intScreenHandler.calculateComparatorOutput(@Nullable BlockEntity entity) -
Uses of BlockEntity in net.minecraft.server.debug
Methods in net.minecraft.server.debug with parameters of type BlockEntityModifier and TypeMethodDescriptionvoidSubscriptionTracker.trackBlockEntity(BlockEntity blockEntity) -
Uses of BlockEntity in net.minecraft.server.world
Methods in net.minecraft.server.world with parameters of type BlockEntity -
Uses of BlockEntity in net.minecraft.test
Methods in net.minecraft.test with type parameters of type BlockEntityModifier and TypeMethodDescription<T extends BlockEntity>
voidTestContext.checkBlockEntity(BlockPos pos, Class<T> clazz, Predicate<T> predicate, Supplier<Text> messageGetter) <T extends BlockEntity>
TTestContext.getBlockEntity(BlockPos pos, Class<T> clazz) -
Uses of BlockEntity in net.minecraft.world
Methods in net.minecraft.world with type parameters of type BlockEntityModifier 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) Methods in net.minecraft.world that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityBlockView.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.@Nullable BlockEntityChunkRegion.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.@Nullable BlockEntityEmptyBlockRenderView.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.@Nullable BlockEntityEmptyBlockView.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.@Nullable BlockEntityWorld.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.Methods in net.minecraft.world with parameters of type BlockEntityModifier and TypeMethodDescriptionvoidWorld.addBlockEntity(BlockEntity blockEntity) voidWorld.loadBlockEntity(BlockEntity blockEntity) -
Uses of BlockEntity in net.minecraft.world.chunk
Classes in net.minecraft.world.chunk with type parameters of type BlockEntityModifier and TypeClassDescriptionprivate classFields in net.minecraft.world.chunk declared as BlockEntityModifier and TypeFieldDescriptionprivate final TWorldChunk.DirectBlockEntityTickInvoker.blockEntityFields in net.minecraft.world.chunk with type parameters of type BlockEntityMethods in net.minecraft.world.chunk with type parameters of type BlockEntityModifier 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) Methods in net.minecraft.world.chunk that return BlockEntityModifier and TypeMethodDescriptionprivate @Nullable BlockEntityWorldChunk.createBlockEntity(BlockPos pos) @Nullable BlockEntityChunkCache.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.@Nullable BlockEntityEmptyChunk.getBlockEntity(BlockPos pos, WorldChunk.CreationType creationType) @Nullable BlockEntityProtoChunk.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.@Nullable BlockEntityWorldChunk.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.@Nullable BlockEntityWorldChunk.getBlockEntity(BlockPos pos, WorldChunk.CreationType creationType) @Nullable BlockEntityWrapperProtoChunk.getBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.private @Nullable BlockEntityWorldChunk.loadBlockEntity(BlockPos pos, NbtCompound nbt) Methods in net.minecraft.world.chunk that return types with arguments of type BlockEntityMethods in net.minecraft.world.chunk with parameters of type BlockEntityModifier and TypeMethodDescriptionvoidEmptyChunk.addBlockEntity(BlockEntity blockEntity) voidWorldChunk.addBlockEntity(BlockEntity blockEntity) abstract voidChunk.setBlockEntity(BlockEntity blockEntity) voidEmptyChunk.setBlockEntity(BlockEntity blockEntity) voidProtoChunk.setBlockEntity(BlockEntity blockEntity) voidWorldChunk.setBlockEntity(BlockEntity blockEntity) voidWrapperProtoChunk.setBlockEntity(BlockEntity blockEntity)