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.critereon
Methods in net.minecraft.advancements.critereon with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static booleanBlockPredicate.matchesBlockEntity(LevelReader level, BlockEntity blockEntity, NbtPredicate nbtPredicate) -
Uses of BlockEntity in net.minecraft.client
Methods in net.minecraft.client with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate voidMinecraft.addCustomNbtData(ItemStack stack, BlockEntity blockEntity, RegistryAccess registryAccess) -
Uses of BlockEntity in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final Set<BlockEntity> LevelRenderer.globalBlockEntitiesGlobal block entities; these are always rendered, even if off-screen.Methods in net.minecraft.client.renderer with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic MaterialSheets.chooseMaterial(BlockEntity blockEntity, ChestType chestType, boolean holiday) Method parameters in net.minecraft.client.renderer with type arguments of type BlockEntityModifier and TypeMethodDescriptionvoidLevelRenderer.iterateVisibleBlockEntities(Consumer<BlockEntity> blockEntityConsumer) voidLevelRenderer.updateGlobalBlockEntities(Collection<BlockEntity> blockEntitiesToRemove, Collection<BlockEntity> blockEntitiesToAdd) -
Uses of BlockEntity in net.minecraft.client.renderer.blockentity
Classes in net.minecraft.client.renderer.blockentity with type parameters of type BlockEntityModifier and TypeInterfaceDescriptioninterfaceBlockEntityRenderer<T extends BlockEntity>interfaceBlockEntityRendererProvider<T extends BlockEntity>classBrightnessCombiner<S extends BlockEntity>classChestRenderer<T extends BlockEntity & LidBlockEntity>Methods in net.minecraft.client.renderer.blockentity with type parameters of type BlockEntityModifier and TypeMethodDescription<E extends BlockEntity>
BlockEntityRenderer<E> BlockEntityRenderDispatcher.getRenderer(E blockEntity) static <T extends BlockEntity>
voidBlockEntityRenderers.register(BlockEntityType<? extends T> type, BlockEntityRendererProvider<T> renderProvider) <E extends BlockEntity>
voidBlockEntityRenderDispatcher.render(E blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) <E extends BlockEntity>
booleanBlockEntityRenderDispatcher.renderItem(E blockEntity, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay) private static <T extends BlockEntity>
voidBlockEntityRenderDispatcher.setupAndRender(BlockEntityRenderer<T> renderer, T blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) Methods in net.minecraft.client.renderer.blockentity with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static voidBlockEntityRenderDispatcher.tryRender(BlockEntity blockEntity, Runnable renderer) -
Uses of BlockEntity in net.minecraft.client.renderer.chunk
Fields in net.minecraft.client.renderer.chunk with type parameters of type BlockEntityModifier and TypeFieldDescriptionprivate final Map<BlockPos, BlockEntity> RenderChunk.blockEntitiesfinal List<BlockEntity> SectionCompiler.Results.blockEntitiesfinal List<BlockEntity> SectionCompiler.Results.globalBlockEntitiesprivate final Set<BlockEntity> SectionRenderDispatcher.RenderSection.globalBlockEntities(package private) final List<BlockEntity> SectionRenderDispatcher.CompiledSection.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 TypeMethodDescriptionRenderChunk.getBlockEntity(BlockPos pos) RenderChunkRegion.getBlockEntity(BlockPos pos) Methods in net.minecraft.client.renderer.chunk that return types with arguments of type BlockEntityModifier and TypeMethodDescriptionSectionRenderDispatcher.CompiledSection.getRenderableBlockEntities()Method parameters in net.minecraft.client.renderer.chunk with type arguments of type BlockEntityModifier and TypeMethodDescription(package private) voidSectionRenderDispatcher.RenderSection.updateGlobalBlockEntities(Collection<BlockEntity> blockEntities) -
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, Predicate<T> predicate, Supplier<String> exceptionMessage) <T extends BlockEntity>
TGameTestHelper.getBlockEntity(BlockPos pos) -
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 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.inventory
Methods in net.minecraft.world.inventory with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic intAbstractContainerMenu.getRedstoneSignalFromBlockEntity(BlockEntity blockEntity) Like the version that takes an inventory. -
Uses of BlockEntity in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type BlockEntityModifier and TypeMethodDescriptionbooleanCustomData.loadInto(BlockEntity blockEntity, HolderLookup.Provider levelRegistry) -
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> blockEntityType) default <T extends BlockEntity>
Optional<T> CommonLevelAccessor.getBlockEntity(BlockPos pos, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
Optional<T> LevelSimulatedReader.getBlockEntity(BlockPos pos, BlockEntityType<T> type) Methods in net.minecraft.world.level that return BlockEntityModifier and TypeMethodDescriptionBlockGetter.getBlockEntity(BlockPos pos) EmptyBlockGetter.getBlockEntity(BlockPos pos) Level.getBlockEntity(BlockPos pos) PathNavigationRegion.getBlockEntity(BlockPos pos) Methods in net.minecraft.world.level that return types with arguments of type BlockEntityModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<BlockEntity, Entity> BaseSpawner.getOwner()Methods in net.minecraft.world.level with parameters of type BlockEntityMethod 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, DirectionProperty directionProperty, BlockState state, LevelAccessor level, BlockPos pos, BiPredicate<LevelAccessor, BlockPos> blockedChestTest) protected static <T extends BlockEntity>
BlockEntityTicker<T> AbstractFurnaceBlock.createFurnaceTicker(Level level, BlockEntityType<T> serverType, BlockEntityType<? extends AbstractFurnaceBlockEntity> clientType) protected static <E extends BlockEntity,A extends BlockEntity>
BlockEntityTicker<A> BaseEntityBlock.createTickerHelper(BlockEntityType<A> serverType, BlockEntityType<E> clientType, BlockEntityTicker<? super E> ticker) protected static <E extends BlockEntity,A extends BlockEntity>
BlockEntityTicker<A> BaseEntityBlock.createTickerHelper(BlockEntityType<A> serverType, BlockEntityType<E> clientType, BlockEntityTicker<? super E> ticker) default <T extends BlockEntity>
GameEventListenerEntityBlock.getListener(ServerLevel level, T blockEntity) <T extends BlockEntity>
BlockEntityTicker<T> AbstractSkullBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BeaconBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BeehiveBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BellBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BlastFurnaceBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BrewingStandBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> CalibratedSculkSensorBlock.getTicker(Level p_277645_, BlockState p_278033_, BlockEntityType<T> p_277641_) <T extends BlockEntity>
BlockEntityTicker<T> CampfireBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> CeilingHangingSignBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> ChestBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> ConduitBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> CrafterBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> DaylightDetectorBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> EnchantingTableBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> EnderChestBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> EndGatewayBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) default <T extends BlockEntity>
BlockEntityTicker<T> EntityBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> FurnaceBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> HopperBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> JukeboxBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> SculkCatalystBlock.getTicker(Level p_222100_, BlockState p_222101_, BlockEntityType<T> p_222102_) <T extends BlockEntity>
BlockEntityTicker<T> SculkSensorBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> SculkShriekerBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> ShulkerBoxBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> SignBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> SmokerBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> SpawnerBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> TrialSpawnerBlock.getTicker(Level p_311756_, BlockState p_312797_, BlockEntityType<T> p_312122_) <T extends BlockEntity>
BlockEntityTicker<T> VaultBlock.getTicker(Level p_323525_, BlockState p_324070_, BlockEntityType<T> p_323541_) <T extends BlockEntity>
BlockEntityTicker<T> WallHangingSignBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) Methods in net.minecraft.world.level.block that return BlockEntityModifier and TypeMethodDescriptionAbstractBannerBlock.newBlockEntity(BlockPos pos, BlockState state) AbstractSkullBlock.newBlockEntity(BlockPos pos, BlockState state) BarrelBlock.newBlockEntity(BlockPos pos, BlockState state) BeaconBlock.newBlockEntity(BlockPos pos, BlockState state) BedBlock.newBlockEntity(BlockPos pos, BlockState state) BeehiveBlock.newBlockEntity(BlockPos pos, BlockState state) BellBlock.newBlockEntity(BlockPos pos, BlockState state) BlastFurnaceBlock.newBlockEntity(BlockPos pos, BlockState state) BrewingStandBlock.newBlockEntity(BlockPos pos, BlockState state) BrushableBlock.newBlockEntity(BlockPos pos, BlockState state) CalibratedSculkSensorBlock.newBlockEntity(BlockPos p_277925_, BlockState p_277938_) CampfireBlock.newBlockEntity(BlockPos pos, BlockState state) CeilingHangingSignBlock.newBlockEntity(BlockPos pos, BlockState state) ChestBlock.newBlockEntity(BlockPos pos, BlockState state) ChiseledBookShelfBlock.newBlockEntity(BlockPos pos, BlockState state) CommandBlock.newBlockEntity(BlockPos pos, BlockState state) ComparatorBlock.newBlockEntity(BlockPos pos, BlockState state) ConduitBlock.newBlockEntity(BlockPos pos, BlockState state) CrafterBlock.newBlockEntity(BlockPos pos, BlockState state) DaylightDetectorBlock.newBlockEntity(BlockPos pos, BlockState state) DecoratedPotBlock.newBlockEntity(BlockPos p_273396_, BlockState p_272674_) DispenserBlock.newBlockEntity(BlockPos pos, BlockState state) DropperBlock.newBlockEntity(BlockPos p_153179_, BlockState p_153180_) EnchantingTableBlock.newBlockEntity(BlockPos pos, BlockState state) EnderChestBlock.newBlockEntity(BlockPos pos, BlockState state) EndGatewayBlock.newBlockEntity(BlockPos pos, BlockState state) EndPortalBlock.newBlockEntity(BlockPos pos, BlockState state) EntityBlock.newBlockEntity(BlockPos pos, BlockState state) FurnaceBlock.newBlockEntity(BlockPos pos, BlockState state) HopperBlock.newBlockEntity(BlockPos pos, BlockState state) JigsawBlock.newBlockEntity(BlockPos pos, BlockState state) JukeboxBlock.newBlockEntity(BlockPos pos, BlockState state) LecternBlock.newBlockEntity(BlockPos pos, BlockState state) SculkCatalystBlock.newBlockEntity(BlockPos p_222117_, BlockState p_222118_) SculkSensorBlock.newBlockEntity(BlockPos pos, BlockState state) SculkShriekerBlock.newBlockEntity(BlockPos pos, BlockState state) ShulkerBoxBlock.newBlockEntity(BlockPos pos, BlockState state) SignBlock.newBlockEntity(BlockPos pos, BlockState state) SmokerBlock.newBlockEntity(BlockPos pos, BlockState state) SpawnerBlock.newBlockEntity(BlockPos pos, BlockState state) StructureBlock.newBlockEntity(BlockPos pos, BlockState state) TrappedChestBlock.newBlockEntity(BlockPos pos, BlockState state) TrialSpawnerBlock.newBlockEntity(BlockPos p_311941_, BlockState p_312821_) VaultBlock.newBlockEntity(BlockPos p_324543_, BlockState p_323652_) WallHangingSignBlock.newBlockEntity(BlockPos pos, BlockState state) Methods in net.minecraft.world.level.block with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic voidBlock.dropResources(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity) static voidBlock.dropResources(BlockState state, Level level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) Block.getDrops(BlockState state, ServerLevel level, BlockPos pos, BlockEntity blockEntity) Block.getDrops(BlockState state, ServerLevel level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) intDropExperienceBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intRedStoneOreBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkCatalystBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkSensorBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkShriekerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSpawnerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) voidBeehiveBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.voidBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack tool) Called after a player has successfully harvested this block.voidDoublePlantBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.voidIceBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.voidTurtleEggBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.private voidCrafterBlock.setBlockEntityTriggered(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>static final classBlockEntityType.Builder<T extends BlockEntity>Subclasses of BlockEntity in net.minecraft.world.level.block.entityModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassMethods in net.minecraft.world.level.block.entity with type parameters of type BlockEntityModifier and TypeMethodDescriptionstatic <T extends BlockEntity>
BlockEntityType.Builder<T> BlockEntityType.Builder.of(BlockEntityType.BlockEntitySupplier<? extends T> factory, Block... validBlocks) private static <T extends BlockEntity>
BlockEntityType<T> BlockEntityType.register(String key, BlockEntityType.Builder<T> builder) Methods in net.minecraft.world.level.block.entity that return BlockEntityModifier and TypeMethodDescriptionDecoratedPotBlockEntity.getContainerBlockEntity()JukeboxBlockEntity.getContainerBlockEntity()static BlockEntityBlockEntity.loadStatic(BlockPos pos, BlockState state, CompoundTag tag, HolderLookup.Provider registries) -
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 TypeMethodDescriptioncom.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>
BlockEntityTicker<T> MovingPistonBlock.getTicker(Level level, BlockState state, BlockEntityType<T> blockEntityType) Methods in net.minecraft.world.level.block.piston that return BlockEntityModifier and TypeMethodDescriptionMovingPistonBlock.newBlockEntity(BlockPos pos, BlockState state) static BlockEntityMovingPistonBlock.newMovingBlockEntity(BlockPos pos, 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>
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 BlockEntityLevelChunk.createBlockEntity(BlockPos pos) EmptyLevelChunk.getBlockEntity(BlockPos pos, LevelChunk.EntityCreationType creationType) ImposterProtoChunk.getBlockEntity(BlockPos pos) LevelChunk.getBlockEntity(BlockPos pos) LevelChunk.getBlockEntity(BlockPos pos, LevelChunk.EntityCreationType creationType) ProtoChunk.getBlockEntity(BlockPos pos) private 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.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type BlockEntityModifier and TypeFieldDescriptionstatic final LootContextParam<BlockEntity> LootContextParams.BLOCK_ENTITY -
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.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 TypeMethodDescriptionBlockCapability.getCapability(Level level, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity, C context) IBlockCapabilityProvider.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
Methods in net.neoforged.neoforge.client with type parameters of type BlockEntityModifier and TypeMethodDescriptionstatic <T extends BlockEntity>
booleanClientHooks.isBlockEntityRendererVisible(BlockEntityRenderDispatcher dispatcher, BlockEntity blockEntity, Frustum frustum) Methods in net.neoforged.neoforge.client with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static voidBlockEntityRenderBoundsDebugRenderer.drawRenderBoundingBox(PoseStack poseStack, VertexConsumer consumer, Vec3 camera, BlockEntity be) static <T extends BlockEntity>
booleanClientHooks.isBlockEntityRendererVisible(BlockEntityRenderDispatcher dispatcher, BlockEntity blockEntity, Frustum frustum) -
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>
voidEntityRenderersEvent.RegisterRenderers.registerBlockEntityRenderer(BlockEntityType<? extends T> blockEntityType, BlockEntityRendererProvider<T> 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.client.model.data
Methods in net.neoforged.neoforge.client.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.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>
TILevelExtension.getCapability(BlockCapability<T, C> cap, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity, C context) Retrieve a block capability.default <T> 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, MobSpawnType 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.items
Methods in net.neoforged.neoforge.items with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static ItemStackVanillaInventoryCodeHooks.insertStack(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack, int slot) Copied from TileEntityHopper#insertStack and added capability supportprivate static ItemStackVanillaInventoryCodeHooks.putStackInInventoryAllSlots(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack) -
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