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 blockEntity, NbtPredicate nbtPredicate) 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 p_439422_) -
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 sign, BeaconRenderState renderState, float partialTick, Vec3 cameraPosition) static <T extends BlockEntity & BoundingBoxRenderable>
voidBlockEntityWithBoundingBoxRenderer.extract(T blockEntity, BlockEntityWithBoundingBoxRenderState renderState) <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 renderState) static <T extends BlockEntity,S extends BlockEntityRenderState>
voidBlockEntityRenderers.register(BlockEntityType<? extends T> type, BlockEntityRendererProvider<T, S> renderProvider) <E extends BlockEntity,S extends BlockEntityRenderState>
@Nullable SBlockEntityRenderDispatcher.tryExtractRenderState(E blockEntity, float partialTick, @Nullable ModelFeatureRenderer.CrumblingOverlay crumblingOverlay) Deprecated.<E extends BlockEntity,S extends BlockEntityRenderState>
@Nullable SBlockEntityRenderDispatcher.tryExtractRenderState(E blockEntity, float partialTick, @Nullable ModelFeatureRenderer.CrumblingOverlay crumblingOverlay, @Nullable Frustum frustum) Methods in net.minecraft.client.renderer.blockentity with parameters of type BlockEntityModifier and TypeMethodDescriptionChestRenderer.getChestMaterial(BlockEntity blockEntity, 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 renderState, @Nullable ModelFeatureRenderer.CrumblingOverlay crumblingOverlay) -
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 p_427443_) @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> blockEntityClass, Predicate<T> predicate, Supplier<Component> message) <T extends BlockEntity>
TGameTestHelper.getBlockEntity(BlockPos pos, Class<T> clazz) -
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> dataGetter) (package 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> dataGetter) -
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 distance) -
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 state, Level level, BlockPos pos) private @Nullable TransportItemsBetweenContainers.TransportItemTargetTransportItemsBetweenContainers.isTargetValidToPick(PathfinderMob mob, Level level, BlockEntity blockEntity, Set<GlobalPos> visitedPositions, Set<GlobalPos> unreachablePositions, AABB searchArea) 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 problemReporter) -
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 entity, 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 p_151452_, BlockEntityType<T> p_151453_) <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 p_363675_) @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 entity) 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> blockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> doubleBlockTypeGetter, Function<BlockState, Direction> directionGetter, Property<Direction> directionProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChestTest) protected static <T extends BlockEntity>
@Nullable BlockEntityTicker<T> AbstractFurnaceBlock.createFurnaceTicker(Level level, BlockEntityType<T> serverType, BlockEntityType<? extends AbstractFurnaceBlockEntity> clientType) protected static <E extends BlockEntity,A extends BlockEntity>
@Nullable BlockEntityTicker<A> BaseEntityBlock.createTickerHelper(BlockEntityType<A> actualType, BlockEntityType<E> expectedType, BlockEntityTicker<? super E> ticker) protected static <E extends BlockEntity,A extends BlockEntity>
@Nullable BlockEntityTicker<A> BaseEntityBlock.createTickerHelper(BlockEntityType<A> actualType, BlockEntityType<E> expectedType, BlockEntityTicker<? super E> ticker) default <T extends BlockEntity>
@Nullable GameEventListenerEntityBlock.getListener(ServerLevel level, T blockEntity) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> AbstractSkullBlock.getTicker(Level p_151992_, BlockState p_151993_, BlockEntityType<T> p_151994_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BeaconBlock.getTicker(Level p_152160_, BlockState p_152161_, BlockEntityType<T> p_152162_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BeehiveBlock.getTicker(Level p_152180_, BlockState p_152181_, BlockEntityType<T> p_152182_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BellBlock.getTicker(Level p_152194_, BlockState p_152195_, BlockEntityType<T> p_152196_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BlastFurnaceBlock.getTicker(Level p_152382_, BlockState p_152383_, BlockEntityType<T> p_152384_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> BrewingStandBlock.getTicker(Level p_152694_, BlockState p_152695_, BlockEntityType<T> p_152696_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CalibratedSculkSensorBlock.getTicker(Level p_277645_, BlockState p_278033_, BlockEntityType<T> p_277641_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CampfireBlock.getTicker(Level p_152755_, BlockState p_152756_, BlockEntityType<T> p_152757_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CeilingHangingSignBlock.getTicker(Level p_279379_, BlockState p_279390_, BlockEntityType<T> p_279231_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> ChestBlock.getTicker(Level p_153055_, BlockState p_153056_, BlockEntityType<T> p_153057_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> ConduitBlock.getTicker(Level p_153094_, BlockState p_153095_, BlockEntityType<T> p_153096_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CrafterBlock.getTicker(Level p_307308_, BlockState p_307639_, BlockEntityType<T> p_307651_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> CreakingHeartBlock.getTicker(Level p_379447_, BlockState p_379641_, BlockEntityType<T> p_380325_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> DaylightDetectorBlock.getTicker(Level p_153109_, BlockState p_153110_, BlockEntityType<T> p_153111_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> EnchantingTableBlock.getTicker(Level p_340880_, BlockState p_341416_, BlockEntityType<T> p_341078_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> EnderChestBlock.getTicker(Level p_153199_, BlockState p_153200_, BlockEntityType<T> p_153201_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> EndGatewayBlock.getTicker(Level p_153189_, BlockState p_153190_, BlockEntityType<T> p_153191_) default <T extends BlockEntity>
@Nullable BlockEntityTicker<T> EntityBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> FurnaceBlock.getTicker(Level p_153273_, BlockState p_153274_, BlockEntityType<T> p_153275_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> HopperBlock.getTicker(Level p_153378_, BlockState p_153379_, BlockEntityType<T> p_153380_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> JukeboxBlock.getTicker(Level p_239682_, BlockState p_239683_, BlockEntityType<T> p_239684_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SculkCatalystBlock.getTicker(Level p_222100_, BlockState p_222101_, BlockEntityType<T> p_222102_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SculkSensorBlock.getTicker(Level p_154401_, BlockState p_154402_, BlockEntityType<T> p_154403_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SculkShriekerBlock.getTicker(Level p_222173_, BlockState p_222174_, BlockEntityType<T> p_222175_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> ShulkerBoxBlock.getTicker(Level p_154543_, BlockState p_154544_, BlockEntityType<T> p_154545_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SignBlock.getTicker(Level p_277367_, BlockState p_277896_, BlockEntityType<T> p_277724_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SmokerBlock.getTicker(Level p_154640_, BlockState p_154641_, BlockEntityType<T> p_154642_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> SpawnerBlock.getTicker(Level p_154683_, BlockState p_154684_, BlockEntityType<T> p_154685_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> TrialSpawnerBlock.getTicker(Level p_311756_, BlockState p_312797_, BlockEntityType<T> p_312122_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> VaultBlock.getTicker(Level p_323525_, BlockState p_324070_, BlockEntityType<T> p_323541_) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> WallHangingSignBlock.getTicker(Level p_279316_, BlockState p_279345_, BlockEntityType<T> p_279384_) Methods in net.minecraft.world.level.block that return BlockEntityModifier and TypeMethodDescriptionAbstractBannerBlock.newBlockEntity(BlockPos p_151892_, BlockState p_151893_) AbstractSkullBlock.newBlockEntity(BlockPos p_151996_, BlockState p_151997_) @Nullable BlockEntityBarrelBlock.newBlockEntity(BlockPos p_152102_, BlockState p_152103_) BeaconBlock.newBlockEntity(BlockPos p_152164_, BlockState p_152165_) BedBlock.newBlockEntity(BlockPos p_152175_, BlockState p_152176_) @Nullable BlockEntityBeehiveBlock.newBlockEntity(BlockPos p_152184_, BlockState p_152185_) @Nullable BlockEntityBellBlock.newBlockEntity(BlockPos p_152198_, BlockState p_152199_) BlastFurnaceBlock.newBlockEntity(BlockPos p_152386_, BlockState p_152387_) BrewingStandBlock.newBlockEntity(BlockPos p_152698_, BlockState p_152699_) @Nullable BlockEntityBrushableBlock.newBlockEntity(BlockPos p_277683_, BlockState p_277381_) @Nullable BlockEntityCalibratedSculkSensorBlock.newBlockEntity(BlockPos p_277925_, BlockState p_277938_) CampfireBlock.newBlockEntity(BlockPos p_152759_, BlockState p_152760_) CeilingHangingSignBlock.newBlockEntity(BlockPos p_249338_, BlockState p_250706_) ChestBlock.newBlockEntity(BlockPos p_153064_, BlockState p_153065_) @Nullable BlockEntityChiseledBookShelfBlock.newBlockEntity(BlockPos p_250440_, BlockState p_248729_) CommandBlock.newBlockEntity(BlockPos p_153083_, BlockState p_153084_) ComparatorBlock.newBlockEntity(BlockPos p_153086_, BlockState p_153087_) ConduitBlock.newBlockEntity(BlockPos p_153098_, BlockState p_153099_) @Nullable BlockEntityCopperGolemStatueBlock.newBlockEntity(BlockPos p_435983_, BlockState p_435356_) CrafterBlock.newBlockEntity(BlockPos p_307381_, BlockState p_307601_) CreakingHeartBlock.newBlockEntity(BlockPos p_380178_, BlockState p_380317_) DaylightDetectorBlock.newBlockEntity(BlockPos p_153118_, BlockState p_153119_) @Nullable BlockEntityDecoratedPotBlock.newBlockEntity(BlockPos p_273396_, BlockState p_272674_) DispenserBlock.newBlockEntity(BlockPos p_153162_, BlockState p_153163_) DropperBlock.newBlockEntity(BlockPos p_153179_, BlockState p_153180_) EnchantingTableBlock.newBlockEntity(BlockPos p_341190_, BlockState p_340989_) EnderChestBlock.newBlockEntity(BlockPos p_153208_, BlockState p_153209_) EndGatewayBlock.newBlockEntity(BlockPos p_153193_, BlockState p_153194_) EndPortalBlock.newBlockEntity(BlockPos p_153196_, BlockState p_153197_) @Nullable BlockEntityEntityBlock.newBlockEntity(BlockPos pos, BlockState state) FurnaceBlock.newBlockEntity(BlockPos p_153277_, BlockState p_153278_) HopperBlock.newBlockEntity(BlockPos p_153382_, BlockState p_153383_) JigsawBlock.newBlockEntity(BlockPos p_153448_, BlockState p_153449_) JukeboxBlock.newBlockEntity(BlockPos p_153451_, BlockState p_153452_) LecternBlock.newBlockEntity(BlockPos p_153573_, BlockState p_153574_) @Nullable BlockEntitySculkCatalystBlock.newBlockEntity(BlockPos p_222117_, BlockState p_222118_) @Nullable BlockEntitySculkSensorBlock.newBlockEntity(BlockPos p_154466_, BlockState p_154467_) @Nullable BlockEntitySculkShriekerBlock.newBlockEntity(BlockPos p_222213_, BlockState p_222214_) @Nullable BlockEntityShelfBlock.newBlockEntity(BlockPos p_433693_, BlockState p_434499_) ShulkerBoxBlock.newBlockEntity(BlockPos p_154552_, BlockState p_154553_) SignBlock.newBlockEntity(BlockPos p_154556_, BlockState p_154557_) SmokerBlock.newBlockEntity(BlockPos p_154644_, BlockState p_154645_) SpawnerBlock.newBlockEntity(BlockPos p_154687_, BlockState p_154688_) StructureBlock.newBlockEntity(BlockPos p_154732_, BlockState p_154733_) @Nullable BlockEntityTestBlock.newBlockEntity(BlockPos p_397356_, BlockState p_397468_) @Nullable BlockEntityTestInstanceBlock.newBlockEntity(BlockPos p_397973_, BlockState p_397522_) TrappedChestBlock.newBlockEntity(BlockPos p_154834_, BlockState p_154835_) @Nullable BlockEntityTrialSpawnerBlock.newBlockEntity(BlockPos p_311941_, BlockState p_312821_) @Nullable BlockEntityVaultBlock.newBlockEntity(BlockPos p_324543_, BlockState p_323652_) WallHangingSignBlock.newBlockEntity(BlockPos p_250745_, BlockState p_250905_) Methods in net.minecraft.world.level.block with parameters of type BlockEntityModifier and TypeMethodDescriptionprotected static booleanBlock.dropFromBlockInteractLootTable(ServerLevel level, ResourceKey<LootTable> lootTable, BlockState state, @Nullable BlockEntity blockEntity, @Nullable ItemStack tool, @Nullable Entity entity, BiConsumer<ServerLevel, ItemStack> dropConsumer) static voidBeehiveBlock.dropHoneycomb(ServerLevel level, ItemStack stack, BlockState state, @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 entity, 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 entity, ItemStack 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 stack) voidBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called after a player has successfully harvested this block.voidDoublePlantBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidIceBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidTurtleEggBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) 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 BlockEntityModifierConstructorDescription(package private)BlockEntityPathElement(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 p_155875_, BlockState p_155876_, BlockEntityType<T> p_155877_) Methods in net.minecraft.world.level.block.piston that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityMovingPistonBlock.newBlockEntity(BlockPos p_155879_, BlockState p_155880_) static BlockEntityMovingPistonBlock.newMovingBlockEntity(BlockPos pos, BlockState state, 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> blockEntityType) -
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 TypeClassDescription(package private) 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 p_62609_, LevelChunk.EntityCreationType p_62610_) @Nullable BlockEntityImposterProtoChunk.getBlockEntity(BlockPos p_62744_) @Nullable BlockEntityLevelChunk.getBlockEntity(BlockPos p_62912_) @Nullable BlockEntityLevelChunk.getBlockEntity(BlockPos pos, LevelChunk.EntityCreationType creationType) @Nullable BlockEntityProtoChunk.getBlockEntity(BlockPos p_63257_) 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 p_156346_) voidLevelChunk.addAndRegisterBlockEntity(BlockEntity blockEntity) abstract voidChunkAccess.setBlockEntity(BlockEntity blockEntity) voidEmptyLevelChunk.setBlockEntity(BlockEntity p_156344_) voidImposterProtoChunk.setBlockEntity(BlockEntity p_156358_) voidLevelChunk.setBlockEntity(BlockEntity p_156374_) voidProtoChunk.setBlockEntity(BlockEntity p_156488_) -
Uses of BlockEntity in net.minecraft.world.level.storage.loot
Fields 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>> factory) 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
Fields 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 p_451571_) Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type BlockEntityModifier and TypeMethodDescriptionCopyComponentsFunction.copyComponentsFromBlockEntity(ContextKey<? extends BlockEntity> contextParam) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type BlockEntityModifierConstructorDescription(package private)BlockEntitySource(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
Fields 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 p_451111_) Constructor parameters in net.minecraft.world.level.storage.loot.providers.nbt with type arguments of type BlockEntityModifierConstructorDescription(package private)BlockEntitySource(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.syncBlockEntityUpdate(BlockEntity blockEntity, AttachmentType<?> type) -
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