Uses of Class
net.minecraft.world.level.block.entity.BlockEntity
Packages that use BlockEntity
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client-only classes.-
Uses of BlockEntity in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static booleanBlockPredicate.matchesBlockEntity(LevelReader level, @Nullable BlockEntity entity, NbtPredicate nbt) private static booleanBlockPredicate.matchesComponents(@Nullable BlockEntity entity, DataComponentMatchers components) -
Uses of BlockEntity in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final Set<BlockEntity> ClientLevel.globallyRenderedBlockEntitiesMethods in net.minecraft.client.multiplayer that return types with arguments of type BlockEntityMethods in net.minecraft.client.multiplayer with parameters of type BlockEntity -
Uses of BlockEntity in net.minecraft.client.renderer
Method parameters in net.minecraft.client.renderer with type arguments of type BlockEntityModifier and TypeMethodDescriptionvoidLevelRenderer.iterateVisibleBlockEntities(Consumer<BlockEntity> blockEntityConsumer) -
Uses of BlockEntity in net.minecraft.client.renderer.block
Methods in net.minecraft.client.renderer.block that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityMovingBlockRenderState.getBlockEntity(BlockPos pos) -
Uses of BlockEntity in net.minecraft.client.renderer.blockentity
Classes in net.minecraft.client.renderer.blockentity with type parameters of type BlockEntityModifier and TypeClassDescriptionclassBeaconRenderer<T extends BlockEntity & BeaconBeamOwner>interfaceBlockEntityRenderer<T extends BlockEntity, S extends BlockEntityRenderState>interfaceBlockEntityRendererProvider<T extends BlockEntity, S extends BlockEntityRenderState>classclassBrightnessCombiner<S extends BlockEntity>classChestRenderer<T extends BlockEntity & LidBlockEntity>Methods in net.minecraft.client.renderer.blockentity with type parameters of type BlockEntityModifier and TypeMethodDescriptionstatic <T extends BlockEntity & BeaconBeamOwner>
voidBeaconRenderer.extract(T blockEntity, BeaconRenderState state, float partialTicks, Vec3 cameraPosition) static <T extends BlockEntity & BoundingBoxRenderable>
voidBlockEntityWithBoundingBoxRenderer.extract(T blockEntity, BlockEntityWithBoundingBoxRenderState state) <E extends BlockEntity, S extends BlockEntityRenderState>
@Nullable BlockEntityRenderer<E, S> BlockEntityRenderDispatcher.getRenderer(E blockEntity) <E extends BlockEntity, S extends BlockEntityRenderState>
@Nullable BlockEntityRenderer<E, S> BlockEntityRenderDispatcher.getRenderer(S state) static <T extends BlockEntity, S extends BlockEntityRenderState>
voidBlockEntityRenderers.register(BlockEntityType<? extends T> type, BlockEntityRendererProvider<T, S> renderer) <E extends BlockEntity, S extends BlockEntityRenderState>
@Nullable SBlockEntityRenderDispatcher.tryExtractRenderState(E blockEntity, float partialTicks, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) Deprecated.<E extends BlockEntity, S extends BlockEntityRenderState>
@Nullable SBlockEntityRenderDispatcher.tryExtractRenderState(E blockEntity, float partialTicks, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress, @Nullable Frustum frustum) Methods in net.minecraft.client.renderer.blockentity with parameters of type BlockEntityModifier and TypeMethodDescriptionChestRenderer.getChestMaterial(BlockEntity entity, boolean xmasTextures) BlockEntityWithBoundingBoxRenderer.getRenderBoundingBox(BlockEntity blockEntity) -
Uses of BlockEntity in net.minecraft.client.renderer.blockentity.state
Methods in net.minecraft.client.renderer.blockentity.state with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic voidBlockEntityRenderState.extractBase(BlockEntity blockEntity, BlockEntityRenderState state, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) -
Uses of BlockEntity in net.minecraft.client.renderer.chunk
Fields in net.minecraft.client.renderer.chunk with type parameters of type BlockEntityModifier and TypeFieldDescriptionfinal List<BlockEntity> SectionCompiler.Results.blockEntitiesprivate final Map<BlockPos, BlockEntity> SectionCopy.blockEntitiesprivate final List<BlockEntity> CompiledSectionMesh.renderableBlockEntitiesMethods in net.minecraft.client.renderer.chunk with type parameters of type BlockEntityModifier and TypeMethodDescriptionprivate <E extends BlockEntity>
voidSectionCompiler.handleBlockEntity(SectionCompiler.Results results, E blockEntity) Methods in net.minecraft.client.renderer.chunk that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityRenderSectionRegion.getBlockEntity(BlockPos pos) @Nullable BlockEntitySectionCopy.getBlockEntity(BlockPos pos) Methods in net.minecraft.client.renderer.chunk that return types with arguments of type BlockEntityModifier and TypeMethodDescriptionCompiledSectionMesh.getRenderableBlockEntities()default List<BlockEntity> SectionMesh.getRenderableBlockEntities() -
Uses of BlockEntity in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with type parameters of type BlockEntityModifier and TypeMethodDescription<T extends BlockEntity>
voidGameTestHelper.assertBlockEntityData(BlockPos pos, Class<T> type, Predicate<T> predicate, Supplier<Component> errorMessage) <T extends BlockEntity>
TGameTestHelper.getBlockEntity(BlockPos pos, Class<T> type) -
Uses of BlockEntity in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game with parameters of type BlockEntityModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create(BlockEntity blockEntity) ClientboundBlockEntityDataPacket.create(BlockEntity blockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> updateTagSaver) private static ClientboundLevelChunkPacketData.BlockEntityInfoClientboundLevelChunkPacketData.BlockEntityInfo.create(BlockEntity blockEntity) Method parameters in net.minecraft.network.protocol.game with type arguments of type BlockEntityModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create(BlockEntity blockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> updateTagSaver) -
Uses of BlockEntity in net.minecraft.server.commands.data
Fields in net.minecraft.server.commands.data declared as BlockEntityConstructors in net.minecraft.server.commands.data with parameters of type BlockEntity -
Uses of BlockEntity in net.minecraft.server.level
Methods in net.minecraft.server.level that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityWorldGenRegion.getBlockEntity(BlockPos pos) Methods in net.minecraft.server.level with parameters of type BlockEntity -
Uses of BlockEntity in net.minecraft.util.debug
Methods in net.minecraft.util.debug with parameters of type BlockEntityModifier and TypeMethodDescriptionvoidLevelDebugSynchronizers.registerBlockEntity(BlockEntity blockEntity) -
Uses of BlockEntity in net.minecraft.world
Methods in net.minecraft.world with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic booleanContainer.stillValidBlockEntity(BlockEntity blockEntity, Player player) static booleanContainer.stillValidBlockEntity(BlockEntity blockEntity, Player player, float distanceBuffer) -
Uses of BlockEntity in net.minecraft.world.entity.ai.behavior
Fields in net.minecraft.world.entity.ai.behavior declared as BlockEntityModifier and TypeFieldDescriptionprivate final BlockEntityTransportItemsBetweenContainers.TransportItemTarget.blockEntityThe field for theblockEntityrecord component.Methods in net.minecraft.world.entity.ai.behavior that return BlockEntityModifier and TypeMethodDescriptionTransportItemsBetweenContainers.TransportItemTarget.blockEntity()Returns the value of theblockEntityrecord component.Methods in net.minecraft.world.entity.ai.behavior with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static @Nullable ContainerTransportItemsBetweenContainers.TransportItemTarget.getBlockEntityContainer(BlockEntity blockEntity, BlockState blockState, Level level, BlockPos blockPos) private @Nullable TransportItemsBetweenContainers.TransportItemTargetTransportItemsBetweenContainers.isTargetValidToPick(PathfinderMob body, Level level, BlockEntity blockEntity, Set<GlobalPos> visitedPositions, Set<GlobalPos> unreachablePositions, AABB targetBlockSearchArea) static @Nullable TransportItemsBetweenContainers.TransportItemTargetTransportItemsBetweenContainers.TransportItemTarget.tryCreatePossibleTarget(BlockEntity blockEntity, Level level) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type BlockEntityModifierConstructorDescriptionTransportItemTarget(BlockPos pos, Container container, BlockEntity blockEntity, BlockState state) Creates an instance of aTransportItemTargetrecord class. -
Uses of BlockEntity in net.minecraft.world.inventory
Methods in net.minecraft.world.inventory with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic intAbstractContainerMenu.getRedstoneSignalFromBlockEntity(@Nullable BlockEntity blockEntity) Like the version that takes an inventory. -
Uses of BlockEntity in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static CompoundTagAdventureModePredicate.saveBlockEntity(BlockEntity blockEntity, RegistryAccess registryAccess, ProblemReporter reporter) -
Uses of BlockEntity in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type BlockEntityModifier and TypeMethodDescriptionbooleanTypedEntityData.loadInto(BlockEntity blockEntity, HolderLookup.Provider registries) -
Uses of BlockEntity in net.minecraft.world.level
Fields in net.minecraft.world.level with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final ArrayList<BlockEntity> Level.freshBlockEntitiesprivate final ArrayList<BlockEntity> Methods in net.minecraft.world.level with type parameters of type BlockEntityModifier and TypeMethodDescriptiondefault <T extends BlockEntity>
Optional<T> BlockGetter.getBlockEntity(BlockPos pos, BlockEntityType<T> type) default <T extends BlockEntity>
Optional<T> CommonLevelAccessor.getBlockEntity(BlockPos pos, BlockEntityType<T> type) <T extends BlockEntity>
Optional<T> LevelSimulatedReader.getBlockEntity(BlockPos pos, BlockEntityType<T> type) Methods in net.minecraft.world.level that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityBlockGetter.getBlockEntity(BlockPos pos) @Nullable BlockEntityEmptyBlockAndTintGetter.getBlockEntity(BlockPos pos) @Nullable BlockEntityEmptyBlockGetter.getBlockEntity(BlockPos pos) @Nullable BlockEntityLevel.getBlockEntity(BlockPos pos) @Nullable BlockEntityPathNavigationRegion.getBlockEntity(BlockPos pos) Methods in net.minecraft.world.level that return types with arguments of type BlockEntityModifier and TypeMethodDescription@Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> BaseSpawner.getOwner()Methods in net.minecraft.world.level with parameters of type BlockEntityModifier and TypeMethodDescriptionvoidLevel.onBlockEntityAdded(BlockEntity blockEntity) voidLevel.setBlockEntity(BlockEntity blockEntity) Method parameters in net.minecraft.world.level with type arguments of type BlockEntityModifier and TypeMethodDescriptionvoidLevel.addFreshBlockEntities(Collection<BlockEntity> beList) -
Uses of BlockEntity in net.minecraft.world.level.block
Classes in net.minecraft.world.level.block with type parameters of type BlockEntityMethods in net.minecraft.world.level.block with type parameters of type BlockEntityModifier and TypeMethodDescriptionstatic <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour(BlockEntityType<S> entityType, Function<BlockState, DoubleBlockCombiner.BlockType> typeResolver, Function<BlockState, Direction> connectionResolver, Property<Direction> facingProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChecker) protected static <T extends BlockEntity>
@Nullable BlockEntityTicker<T> AbstractFurnaceBlock.createFurnaceTicker(Level level, BlockEntityType<T> actualType, BlockEntityType<? extends AbstractFurnaceBlockEntity> expectedType) protected static <E extends BlockEntity, A extends BlockEntity>
@Nullable BlockEntityTicker<A> BaseEntityBlock.createTickerHelper(BlockEntityType<A> actual, BlockEntityType<E> expected, BlockEntityTicker<? super E> ticker) protected static <E extends BlockEntity, A extends BlockEntity>
@Nullable BlockEntityTicker<A> BaseEntityBlock.createTickerHelper(BlockEntityType<A> actual, BlockEntityType<E> expected, BlockEntityTicker<? super E> ticker) default <T extends BlockEntity>
@Nullable GameEventListenerEntityBlock.getListener(ServerLevel level, T blockEntity) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> AbstractSkullBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BeaconBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BeehiveBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BellBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BlastFurnaceBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BrewingStandBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CalibratedSculkSensorBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CampfireBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CeilingHangingSignBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> ChestBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> ConduitBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CrafterBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CreakingHeartBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> DaylightDetectorBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> EnchantingTableBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> EnderChestBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> EndGatewayBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) default <T extends BlockEntity>
@Nullable BlockEntityTicker<T> EntityBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> FurnaceBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> HopperBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> JukeboxBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SculkCatalystBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SculkSensorBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SculkShriekerBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> ShulkerBoxBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SignBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SmokerBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SpawnerBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> TrialSpawnerBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> VaultBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> WallHangingSignBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) Methods in net.minecraft.world.level.block that return BlockEntityModifier and TypeMethodDescriptionAbstractBannerBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) AbstractSkullBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityBarrelBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) BeaconBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) BedBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityBeehiveBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityBellBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) BlastFurnaceBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) BrewingStandBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityBrushableBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityCalibratedSculkSensorBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) CampfireBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) CeilingHangingSignBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) ChestBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityChiseledBookShelfBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) CommandBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) ComparatorBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) ConduitBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityCopperGolemStatueBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) CrafterBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) CreakingHeartBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) DaylightDetectorBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityDecoratedPotBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) DispenserBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) DropperBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) EnchantingTableBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) EnderChestBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) EndGatewayBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) EndPortalBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityEntityBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) FurnaceBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) HopperBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) JigsawBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) JukeboxBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) LecternBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntitySculkCatalystBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntitySculkSensorBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntitySculkShriekerBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityShelfBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) ShulkerBoxBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) SignBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) SmokerBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) SpawnerBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) StructureBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityTestBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityTestInstanceBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) TrappedChestBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityTrialSpawnerBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) @Nullable BlockEntityVaultBlock.newBlockEntity(BlockPos pos, BlockState state) WallHangingSignBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) Methods in net.minecraft.world.level.block with parameters of type BlockEntityModifier and TypeMethodDescriptionprotected static booleanBlock.dropFromBlockInteractLootTable(ServerLevel level, ResourceKey<LootTable> key, BlockState interactedBlockState, @Nullable BlockEntity interactedBlockEntity, @Nullable ItemInstance tool, @Nullable Entity interactingEntity, BiConsumer<ServerLevel, ItemStack> consumer) static voidBeehiveBlock.dropHoneycomb(ServerLevel level, ItemStack tool, BlockState blockState, @Nullable BlockEntity blockEntity, @Nullable Entity entity, BlockPos pos) static voidBlock.dropResources(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity) static voidBlock.dropResources(BlockState state, Level level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Block.getDrops(BlockState state, ServerLevel level, BlockPos pos, @Nullable BlockEntity blockEntity) Block.getDrops(BlockState state, ServerLevel level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemInstance tool) intDropExperienceBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intRedStoneOreBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intSculkCatalystBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intSculkSensorBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intSculkShriekerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intSpawnerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) voidBeehiveBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack destroyedWith) voidBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack destroyedWith) Called after a player has successfully harvested this block.voidDoublePlantBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack destroyedWith) voidIceBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack destroyedWith) voidTurtleEggBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack destroyedWith) private voidCrafterBlock.setBlockEntityTriggered(@Nullable BlockEntity blockEntity, boolean triggered) -
Uses of BlockEntity in net.minecraft.world.level.block.entity
Classes in net.minecraft.world.level.block.entity with type parameters of type BlockEntityModifier and TypeInterfaceDescriptioninterfaceBlockEntityTicker<T extends BlockEntity>classBlockEntityType<T extends BlockEntity>static interfaceBlockEntityType.BlockEntitySupplier<T extends BlockEntity>Subclasses of BlockEntity in net.minecraft.world.level.block.entityModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.level.block.entity declared as BlockEntityModifier and TypeFieldDescriptionprivate final BlockEntityBlockEntity.BlockEntityPathElement.blockEntityThe field for theblockEntityrecord component.Methods in net.minecraft.world.level.block.entity with type parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static <T extends BlockEntity>
BlockEntityType<T> BlockEntityType.register(String name, BlockEntityType.BlockEntitySupplier<? extends T> factory, Block... validBlocks) Methods in net.minecraft.world.level.block.entity that return BlockEntityModifier and TypeMethodDescriptionBlockEntity.BlockEntityPathElement.blockEntity()Returns the value of theblockEntityrecord component.DecoratedPotBlockEntity.getContainerBlockEntity()JukeboxBlockEntity.getContainerBlockEntity()static @Nullable BlockEntityBlockEntity.loadStatic(BlockPos pos, BlockState state, CompoundTag tag, HolderLookup.Provider registries) Constructors in net.minecraft.world.level.block.entity with parameters of type BlockEntityModifierConstructorDescriptionprivateBlockEntityPathElement(BlockEntity blockEntity) Creates an instance of aBlockEntityPathElementrecord class. -
Uses of BlockEntity in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type BlockEntityModifier and TypeMethodDescription@Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> TrialSpawner.getOwner() -
Uses of BlockEntity in net.minecraft.world.level.block.entity.vault
Subclasses of BlockEntity in net.minecraft.world.level.block.entity.vault -
Uses of BlockEntity in net.minecraft.world.level.block.piston
Subclasses of BlockEntity in net.minecraft.world.level.block.pistonMethods in net.minecraft.world.level.block.piston with type parameters of type BlockEntityModifier and TypeMethodDescription<T extends BlockEntity>
@Nullable BlockEntityTicker<T> MovingPistonBlock.getTicker(Level level, BlockState blockState, BlockEntityType<T> type) Methods in net.minecraft.world.level.block.piston that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityMovingPistonBlock.newBlockEntity(BlockPos worldPosition, BlockState blockState) static BlockEntityMovingPistonBlock.newMovingBlockEntity(BlockPos position, BlockState blockState, BlockState movedState, Direction direction, boolean extending, boolean isSourcePiston) -
Uses of BlockEntity in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with type parameters of type BlockEntityModifier and TypeMethodDescription<T extends BlockEntity>
@Nullable BlockEntityTicker<T> BlockBehaviour.BlockStateBase.getTicker(Level level, BlockEntityType<T> type) -
Uses of BlockEntity in net.minecraft.world.level.block.state.pattern
Fields in net.minecraft.world.level.block.state.pattern declared as BlockEntityMethods in net.minecraft.world.level.block.state.pattern that return BlockEntity -
Uses of BlockEntity in net.minecraft.world.level.chunk
Classes in net.minecraft.world.level.chunk with type parameters of type BlockEntityModifier and TypeClassDescriptionprivate classLevelChunk.BoundTickingBlockEntity<T extends BlockEntity>Fields in net.minecraft.world.level.chunk declared as BlockEntityFields in net.minecraft.world.level.chunk with type parameters of type BlockEntityModifier and TypeFieldDescriptionprotected final Map<BlockPos, BlockEntity> ChunkAccess.blockEntitiesMethods in net.minecraft.world.level.chunk with type parameters of type BlockEntityModifier and TypeMethodDescriptionprivate <T extends BlockEntity>
voidLevelChunk.addGameEventListener(T blockEntity, ServerLevel level) private <T extends BlockEntity>
TickingBlockEntityLevelChunk.createTicker(T blockEntity, BlockEntityTicker<T> ticker) private <T extends BlockEntity>
voidLevelChunk.removeGameEventListener(T blockEntity, ServerLevel level) private <T extends BlockEntity>
voidLevelChunk.updateBlockEntityTicker(T blockEntity) Methods in net.minecraft.world.level.chunk that return BlockEntityModifier and TypeMethodDescriptionprivate @Nullable BlockEntityLevelChunk.createBlockEntity(BlockPos pos) @Nullable BlockEntityEmptyLevelChunk.getBlockEntity(BlockPos pos, LevelChunk.EntityCreationType creationType) @Nullable BlockEntityImposterProtoChunk.getBlockEntity(BlockPos pos) @Nullable BlockEntityLevelChunk.getBlockEntity(BlockPos pos) @Nullable BlockEntityLevelChunk.getBlockEntity(BlockPos pos, LevelChunk.EntityCreationType creationType) @Nullable BlockEntityProtoChunk.getBlockEntity(BlockPos pos) private @Nullable BlockEntityLevelChunk.promotePendingBlockEntity(BlockPos pos, CompoundTag tag) Methods in net.minecraft.world.level.chunk that return types with arguments of type BlockEntityMethods in net.minecraft.world.level.chunk with parameters of type BlockEntityModifier and TypeMethodDescriptionvoidEmptyLevelChunk.addAndRegisterBlockEntity(BlockEntity blockEntity) voidLevelChunk.addAndRegisterBlockEntity(BlockEntity blockEntity) abstract voidChunkAccess.setBlockEntity(BlockEntity blockEntity) voidEmptyLevelChunk.setBlockEntity(BlockEntity blockEntity) voidImposterProtoChunk.setBlockEntity(BlockEntity blockEntity) voidLevelChunk.setBlockEntity(BlockEntity blockEntity) voidProtoChunk.setBlockEntity(BlockEntity blockEntity) -
Uses of BlockEntity in net.minecraft.world.level.storage.loot
Classes in net.minecraft.world.level.storage.loot that implement interfaces with type arguments of type BlockEntityFields in net.minecraft.world.level.storage.loot with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final ContextKey<? extends BlockEntity> LootContext.BlockEntityTarget.paramMethods in net.minecraft.world.level.storage.loot that return types with arguments of type BlockEntityModifier and TypeMethodDescriptionContextKey<? extends BlockEntity> LootContext.BlockEntityTarget.contextParam()Method parameters in net.minecraft.world.level.storage.loot with type arguments of type BlockEntityModifier and TypeMethodDescriptionLootContextArg.ArgCodecBuilder.anyBlockEntity(Function<? super ContextKey<? extends BlockEntity>, ? extends LootContextArg<R>> function) Constructor parameters in net.minecraft.world.level.storage.loot with type arguments of type BlockEntityModifierConstructorDescriptionprivateBlockEntityTarget(String name, ContextKey<? extends BlockEntity> param) -
Uses of BlockEntity in net.minecraft.world.level.storage.loot.functions
Classes in net.minecraft.world.level.storage.loot.functions that implement interfaces with type arguments of type BlockEntityModifier and TypeClassDescriptionprivate static final recordFields in net.minecraft.world.level.storage.loot.functions with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final ContextKey<? extends BlockEntity> CopyComponentsFunction.BlockEntitySource.contextParamThe field for thecontextParamrecord component.Methods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type BlockEntityModifier and TypeMethodDescriptionContextKey<? extends BlockEntity> CopyComponentsFunction.BlockEntitySource.contextParam()Returns the value of thecontextParamrecord component.Methods in net.minecraft.world.level.storage.loot.functions with parameters of type BlockEntityModifier and TypeMethodDescriptionCopyComponentsFunction.BlockEntitySource.get(BlockEntity blockEntity) Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type BlockEntityModifier and TypeMethodDescriptionCopyComponentsFunction.copyComponentsFromBlockEntity(ContextKey<? extends BlockEntity> source) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type BlockEntityModifierConstructorDescriptionprivateBlockEntitySource(ContextKey<? extends BlockEntity> contextParam) Creates an instance of aBlockEntitySourcerecord class. -
Uses of BlockEntity in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type BlockEntityModifier and TypeFieldDescriptionstatic final ContextKey<BlockEntity> LootContextParams.BLOCK_ENTITY -
Uses of BlockEntity in net.minecraft.world.level.storage.loot.providers.nbt
Classes in net.minecraft.world.level.storage.loot.providers.nbt that implement interfaces with type arguments of type BlockEntityModifier and TypeClassDescriptionprivate static final recordFields in net.minecraft.world.level.storage.loot.providers.nbt with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final ContextKey<? extends BlockEntity> ContextNbtProvider.BlockEntitySource.contextParamThe field for thecontextParamrecord component.Methods in net.minecraft.world.level.storage.loot.providers.nbt that return types with arguments of type BlockEntityModifier and TypeMethodDescriptionContextKey<? extends BlockEntity> ContextNbtProvider.BlockEntitySource.contextParam()Returns the value of thecontextParamrecord component.Methods in net.minecraft.world.level.storage.loot.providers.nbt with parameters of type BlockEntityModifier and TypeMethodDescriptionContextNbtProvider.BlockEntitySource.get(BlockEntity blockEntity) Constructor parameters in net.minecraft.world.level.storage.loot.providers.nbt with type arguments of type BlockEntityModifierConstructorDescriptionprivateBlockEntitySource(ContextKey<? extends BlockEntity> contextParam) Creates an instance of aBlockEntitySourcerecord class. -
Uses of BlockEntity in net.minecraft.world.ticks
Methods in net.minecraft.world.ticks that return BlockEntityModifier and TypeMethodDescriptionContainerSingleItem.BlockContainerSingleItem.getContainerBlockEntity() -
Uses of BlockEntity in net.neoforged.neoforge.attachment
Methods in net.neoforged.neoforge.attachment with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic voidAttachmentSync.syncBlockEntityUpdates(BlockEntity blockEntity, List<ServerPlayer> players) -
Uses of BlockEntity in net.neoforged.neoforge.capabilities
Methods in net.neoforged.neoforge.capabilities with type parameters of type BlockEntityModifier and TypeMethodDescription<T, C extends @Nullable Object, BE extends BlockEntity>
voidRegisterCapabilitiesEvent.registerBlockEntity(BlockCapability<T, C> capability, BlockEntityType<BE> blockEntityType, ICapabilityProvider<? super BE, C, T> provider) Register a capability provider for a block entity type.Methods in net.neoforged.neoforge.capabilities with parameters of type BlockEntityModifier and TypeMethodDescription@Nullable TBlockCapability.getCapability(Level level, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity, C context) @Nullable TIBlockCapabilityProvider.getCapability(Level level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, C context) Returns the capability, ornullif not available. -
Uses of BlockEntity in net.neoforged.neoforge.client.event
Methods in net.neoforged.neoforge.client.event with type parameters of type BlockEntityModifier and TypeMethodDescription<T extends BlockEntity, S extends BlockEntityRenderState>
voidEntityRenderersEvent.RegisterRenderers.registerBlockEntityRenderer(BlockEntityType<? extends T> blockEntityType, BlockEntityRendererProvider<T, S> blockEntityRendererProvider) Registers a block entity renderer for the given block entity type. -
Uses of BlockEntity in net.neoforged.neoforge.client.extensions
Classes in net.neoforged.neoforge.client.extensions with type parameters of type BlockEntityModifier and TypeInterfaceDescriptioninterfaceIBlockEntityRendererExtension<T extends BlockEntity> -
Uses of BlockEntity in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic voidCommonHooks.handleBlockDrops(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Fires theBlockDropsEventwhen block drops (items and experience) are determined. -
Uses of BlockEntity in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return BlockEntityMethods in net.neoforged.neoforge.common.extensions that return types with arguments of type BlockEntityModifier and TypeMethodDescription@Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> IOwnedSpawner.getOwner()Returns the block entity or entity which owns this spawner object.Methods in net.neoforged.neoforge.common.extensions with parameters of type BlockEntityModifier and TypeMethodDescriptiondefault <T, C extends @Nullable Object>
@Nullable TILevelExtension.getCapability(BlockCapability<T, C> cap, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity, C context) Retrieve a block capability.default <T> @Nullable TILevelExtension.getCapability(BlockCapability<T, @Nullable Void> cap, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity) Retrieve a block capability with no context.default intIBlockExtension.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments.default intIBlockStateExtension.getExpDrop(LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments. -
Uses of BlockEntity in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityBlockSnapshot.recreateBlockEntity(HolderLookup.Provider provider) Recreates a block entity from the stored data (pos/state/NBT) of this block snapshot. -
Uses of BlockEntity in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final @Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> FinalizeSpawnEvent.spawnerMethods in net.neoforged.neoforge.event.entity.living that return types with arguments of type BlockEntityModifier and TypeMethodDescription@Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> FinalizeSpawnEvent.getSpawner()Retrieves the underlyingBlockEntityorEntitythat performed the spawn.Constructor parameters in net.neoforged.neoforge.event.entity.living with type arguments of type BlockEntityModifierConstructorDescriptionFinalizeSpawnEvent(Mob entity, ServerLevelAccessor level, double x, double y, double z, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, @Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> spawner) -
Uses of BlockEntity in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as BlockEntityMethods in net.neoforged.neoforge.event.level that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityBlockDropsEvent.getBlockEntity()Returns the block entity from the current position, if available.Constructors in net.neoforged.neoforge.event.level with parameters of type BlockEntityModifierConstructorDescriptionBlockDropsEvent(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Constructs a new BlockDropsEvent -
Uses of BlockEntity in net.neoforged.neoforge.model.data
Methods in net.neoforged.neoforge.model.data with parameters of type BlockEntityModifier and TypeMethodDescriptionvoidModelDataManager.requestRefresh(BlockEntity blockEntity) Request a refresh of the stored data for the givenBlockEntity. -
Uses of BlockEntity in net.neoforged.neoforge.server.timings
Fields in net.neoforged.neoforge.server.timings with type parameters of type BlockEntityModifier and TypeFieldDescriptionstatic final TimeTracker<BlockEntity> TimeTracker.BLOCK_ENTITY_UPDATEA tracker for timing tile entity update
BlockEntityRenderDispatcher.tryExtractRenderState(BlockEntity, float, ModelFeatureRenderer.CrumblingOverlay, net.minecraft.client.renderer.culling.Frustum)instead