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 p_330457_, BlockEntity p_332206_, NbtPredicate p_330422_) -
Uses of BlockEntity in net.minecraft.client
Methods in net.minecraft.client with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate voidMinecraft.addCustomNbtData(ItemStack p_263370_, BlockEntity p_263368_, RegistryAccess p_323897_) -
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.globalBlockEntitiesMethods in net.minecraft.client.renderer with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic MaterialSheets.chooseMaterial(BlockEntity p_110768_, ChestType p_110769_, boolean p_110770_) Method parameters in net.minecraft.client.renderer with type arguments of type BlockEntityModifier and TypeMethodDescriptionvoidLevelRenderer.iterateVisibleBlockEntities(Consumer<BlockEntity> blockEntityConsumer) voidLevelRenderer.updateGlobalBlockEntities(Collection<BlockEntity> p_109763_, Collection<BlockEntity> p_109764_) -
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 p_112266_) static <T extends BlockEntity>
voidBlockEntityRenderers.register(BlockEntityType<? extends T> p_173591_, BlockEntityRendererProvider<T> p_173592_) <E extends BlockEntity>
voidBlockEntityRenderDispatcher.render(E p_112268_, float p_112269_, PoseStack p_112270_, MultiBufferSource p_112271_) <E extends BlockEntity>
booleanBlockEntityRenderDispatcher.renderItem(E p_112273_, PoseStack p_112274_, MultiBufferSource p_112275_, int p_112276_, int p_112277_) private static <T extends BlockEntity>
voidBlockEntityRenderDispatcher.setupAndRender(BlockEntityRenderer<T> p_112285_, T p_112286_, float p_112287_, PoseStack p_112288_, MultiBufferSource p_112289_) Methods in net.minecraft.client.renderer.blockentity with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static voidBlockEntityRenderDispatcher.tryRender(BlockEntity p_112279_, Runnable p_112280_) -
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> SectionRenderDispatcher.RenderSection.RebuildTask.CompileResults.blockEntitiesprivate final Set<BlockEntity> SectionRenderDispatcher.RenderSection.globalBlockEntitiesfinal List<BlockEntity> SectionRenderDispatcher.RenderSection.RebuildTask.CompileResults.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>
voidSectionRenderDispatcher.RenderSection.RebuildTask.handleBlockEntity(SectionRenderDispatcher.RenderSection.RebuildTask.CompileResults p_294198_, E p_296214_) Methods in net.minecraft.client.renderer.chunk that return BlockEntityModifier and TypeMethodDescriptionRenderChunk.getBlockEntity(BlockPos p_200452_) RenderChunkRegion.getBlockEntity(BlockPos p_112945_) 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> p_296155_) -
Uses of BlockEntity in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework that return BlockEntity -
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 p_195641_) ClientboundBlockEntityDataPacket.create(BlockEntity p_195643_, BiFunction<BlockEntity, RegistryAccess, CompoundTag> p_324611_) (package private) static ClientboundLevelChunkPacketData.BlockEntityInfoClientboundLevelChunkPacketData.BlockEntityInfo.create(BlockEntity p_195692_) Method parameters in net.minecraft.network.protocol.game with type arguments of type BlockEntityModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create(BlockEntity p_195643_, BiFunction<BlockEntity, RegistryAccess, CompoundTag> p_324611_) -
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 p_273154_, Player p_273222_) static booleanContainer.stillValidBlockEntity(BlockEntity p_272877_, Player p_272670_, float p_320837_) -
Uses of BlockEntity in net.minecraft.world.inventory
Methods in net.minecraft.world.inventory with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic intAbstractContainerMenu.getRedstoneSignalFromBlockEntity(BlockEntity p_38919_) -
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 p_331657_, HolderLookup.Provider p_331528_) -
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 p_151367_, BlockEntityType<T> p_151368_) default <T extends BlockEntity>
Optional<T> CommonLevelAccessor.getBlockEntity(BlockPos p_151452_, BlockEntityType<T> p_151453_) <T extends BlockEntity>
Optional<T> LevelSimulatedReader.getBlockEntity(BlockPos p_151582_, BlockEntityType<T> p_151583_) Methods in net.minecraft.world.level that return BlockEntityModifier and TypeMethodDescriptionBlockGetter.getBlockEntity(BlockPos p_45570_) EmptyBlockGetter.getBlockEntity(BlockPos p_45867_) Level.getBlockEntity(BlockPos p_46716_) PathNavigationRegion.getBlockEntity(BlockPos p_47180_) 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> p_52823_, Function<BlockState, DoubleBlockCombiner.BlockType> p_52824_, Function<BlockState, Direction> p_52825_, DirectionProperty p_52826_, BlockState p_52827_, LevelAccessor p_52828_, BlockPos p_52829_, BiPredicate<LevelAccessor, BlockPos> p_52830_) protected static <T extends BlockEntity>
BlockEntityTicker<T> AbstractFurnaceBlock.createFurnaceTicker(Level p_151988_, BlockEntityType<T> p_151989_, BlockEntityType<? extends AbstractFurnaceBlockEntity> p_151990_) protected static <E extends BlockEntity,A extends BlockEntity>
BlockEntityTicker<A> BaseEntityBlock.createTickerHelper(BlockEntityType<A> p_152133_, BlockEntityType<E> p_152134_, BlockEntityTicker<? super E> p_152135_) protected static <E extends BlockEntity,A extends BlockEntity>
BlockEntityTicker<A> BaseEntityBlock.createTickerHelper(BlockEntityType<A> p_152133_, BlockEntityType<E> p_152134_, BlockEntityTicker<? super E> p_152135_) default <T extends BlockEntity>
GameEventListenerEntityBlock.getListener(ServerLevel p_221121_, T p_221122_) <T extends BlockEntity>
BlockEntityTicker<T> AbstractSkullBlock.getTicker(Level p_151992_, BlockState p_151993_, BlockEntityType<T> p_151994_) <T extends BlockEntity>
BlockEntityTicker<T> BeaconBlock.getTicker(Level p_152160_, BlockState p_152161_, BlockEntityType<T> p_152162_) <T extends BlockEntity>
BlockEntityTicker<T> BeehiveBlock.getTicker(Level p_152180_, BlockState p_152181_, BlockEntityType<T> p_152182_) <T extends BlockEntity>
BlockEntityTicker<T> BellBlock.getTicker(Level p_152194_, BlockState p_152195_, BlockEntityType<T> p_152196_) <T extends BlockEntity>
BlockEntityTicker<T> BlastFurnaceBlock.getTicker(Level p_152382_, BlockState p_152383_, BlockEntityType<T> p_152384_) <T extends BlockEntity>
BlockEntityTicker<T> BrewingStandBlock.getTicker(Level p_152694_, BlockState p_152695_, BlockEntityType<T> p_152696_) <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 p_152755_, BlockState p_152756_, BlockEntityType<T> p_152757_) <T extends BlockEntity>
BlockEntityTicker<T> CeilingHangingSignBlock.getTicker(Level p_279379_, BlockState p_279390_, BlockEntityType<T> p_279231_) <T extends BlockEntity>
BlockEntityTicker<T> ChestBlock.getTicker(Level p_153055_, BlockState p_153056_, BlockEntityType<T> p_153057_) <T extends BlockEntity>
BlockEntityTicker<T> ConduitBlock.getTicker(Level p_153094_, BlockState p_153095_, BlockEntityType<T> p_153096_) <T extends BlockEntity>
BlockEntityTicker<T> CrafterBlock.getTicker(Level p_307308_, BlockState p_307639_, BlockEntityType<T> p_307651_) <T extends BlockEntity>
BlockEntityTicker<T> DaylightDetectorBlock.getTicker(Level p_153109_, BlockState p_153110_, BlockEntityType<T> p_153111_) <T extends BlockEntity>
BlockEntityTicker<T> EnchantingTableBlock.getTicker(Level p_340880_, BlockState p_341416_, BlockEntityType<T> p_341078_) <T extends BlockEntity>
BlockEntityTicker<T> EnderChestBlock.getTicker(Level p_153199_, BlockState p_153200_, BlockEntityType<T> p_153201_) <T extends BlockEntity>
BlockEntityTicker<T> EndGatewayBlock.getTicker(Level p_153189_, BlockState p_153190_, BlockEntityType<T> p_153191_) default <T extends BlockEntity>
BlockEntityTicker<T> EntityBlock.getTicker(Level p_153212_, BlockState p_153213_, BlockEntityType<T> p_153214_) <T extends BlockEntity>
BlockEntityTicker<T> FurnaceBlock.getTicker(Level p_153273_, BlockState p_153274_, BlockEntityType<T> p_153275_) <T extends BlockEntity>
BlockEntityTicker<T> HopperBlock.getTicker(Level p_153378_, BlockState p_153379_, BlockEntityType<T> p_153380_) <T extends BlockEntity>
BlockEntityTicker<T> JukeboxBlock.getTicker(Level p_239682_, BlockState p_239683_, BlockEntityType<T> p_239684_) <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 p_154401_, BlockState p_154402_, BlockEntityType<T> p_154403_) <T extends BlockEntity>
BlockEntityTicker<T> SculkShriekerBlock.getTicker(Level p_222173_, BlockState p_222174_, BlockEntityType<T> p_222175_) <T extends BlockEntity>
BlockEntityTicker<T> ShulkerBoxBlock.getTicker(Level p_154543_, BlockState p_154544_, BlockEntityType<T> p_154545_) <T extends BlockEntity>
BlockEntityTicker<T> SignBlock.getTicker(Level p_277367_, BlockState p_277896_, BlockEntityType<T> p_277724_) <T extends BlockEntity>
BlockEntityTicker<T> SmokerBlock.getTicker(Level p_154640_, BlockState p_154641_, BlockEntityType<T> p_154642_) <T extends BlockEntity>
BlockEntityTicker<T> SpawnerBlock.getTicker(Level p_154683_, BlockState p_154684_, BlockEntityType<T> p_154685_) <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 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_) BarrelBlock.newBlockEntity(BlockPos p_152102_, BlockState p_152103_) BeaconBlock.newBlockEntity(BlockPos p_152164_, BlockState p_152165_) BedBlock.newBlockEntity(BlockPos p_152175_, BlockState p_152176_) BeehiveBlock.newBlockEntity(BlockPos p_152184_, BlockState p_152185_) BellBlock.newBlockEntity(BlockPos p_152198_, BlockState p_152199_) BlastFurnaceBlock.newBlockEntity(BlockPos p_152386_, BlockState p_152387_) BrewingStandBlock.newBlockEntity(BlockPos p_152698_, BlockState p_152699_) BrushableBlock.newBlockEntity(BlockPos p_277683_, BlockState p_277381_) CalibratedSculkSensorBlock.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_) ChiseledBookShelfBlock.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_) CrafterBlock.newBlockEntity(BlockPos p_307381_, BlockState p_307601_) DaylightDetectorBlock.newBlockEntity(BlockPos p_153118_, BlockState p_153119_) DecoratedPotBlock.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_) EntityBlock.newBlockEntity(BlockPos p_153215_, BlockState p_153216_) 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_) SculkCatalystBlock.newBlockEntity(BlockPos p_222117_, BlockState p_222118_) SculkSensorBlock.newBlockEntity(BlockPos p_154466_, BlockState p_154467_) SculkShriekerBlock.newBlockEntity(BlockPos p_222213_, BlockState p_222214_) 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_) TrappedChestBlock.newBlockEntity(BlockPos p_154834_, BlockState p_154835_) TrialSpawnerBlock.newBlockEntity(BlockPos p_311941_, BlockState p_312821_) VaultBlock.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 TypeMethodDescriptionstatic voidBlock.dropResources(BlockState p_49893_, LevelAccessor p_49894_, BlockPos p_49895_, BlockEntity p_49896_) static voidBlock.dropResources(BlockState p_49882_, Level p_49883_, BlockPos p_49884_, BlockEntity p_49885_, Entity p_49886_, ItemStack p_49887_) Block.getDrops(BlockState p_49870_, ServerLevel p_49871_, BlockPos p_49872_, BlockEntity p_49873_) Block.getDrops(BlockState p_49875_, ServerLevel p_49876_, BlockPos p_49877_, BlockEntity p_49878_, Entity p_49879_, ItemStack p_49880_) voidBeehiveBlock.playerDestroy(Level p_49584_, Player p_49585_, BlockPos p_49586_, BlockState p_49587_, BlockEntity p_49588_, ItemStack p_49589_) voidBlock.playerDestroy(Level p_49827_, Player p_49828_, BlockPos p_49829_, BlockState p_49830_, BlockEntity p_49831_, ItemStack p_49832_) voidDoublePlantBlock.playerDestroy(Level p_52865_, Player p_52866_, BlockPos p_52867_, BlockState p_52868_, BlockEntity p_52869_, ItemStack p_52870_) voidIceBlock.playerDestroy(Level p_54157_, Player p_54158_, BlockPos p_54159_, BlockState p_54160_, BlockEntity p_54161_, ItemStack p_54162_) voidTurtleEggBlock.playerDestroy(Level p_57771_, Player p_57772_, BlockPos p_57773_, BlockState p_57774_, BlockEntity p_57775_, ItemStack p_57776_) private voidCrafterBlock.setBlockEntityTriggered(BlockEntity p_307610_, boolean p_307577_) -
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> p_155274_, Block... p_155275_) private static <T extends BlockEntity>
BlockEntityType<T> BlockEntityType.register(String p_58957_, BlockEntityType.Builder<T> p_58958_) Methods in net.minecraft.world.level.block.entity that return BlockEntityModifier and TypeMethodDescriptionDecoratedPotBlockEntity.getContainerBlockEntity()JukeboxBlockEntity.getContainerBlockEntity()static BlockEntityBlockEntity.loadStatic(BlockPos p_155242_, BlockState p_155243_, CompoundTag p_155244_, HolderLookup.Provider p_323542_) -
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 p_155875_, BlockState p_155876_, BlockEntityType<T> p_155877_) Methods in net.minecraft.world.level.block.piston that return BlockEntityModifier and TypeMethodDescriptionMovingPistonBlock.newBlockEntity(BlockPos p_155879_, BlockState p_155880_) static BlockEntityMovingPistonBlock.newMovingBlockEntity(BlockPos p_155882_, BlockState p_155883_, BlockState p_155884_, Direction p_155885_, boolean p_155886_, boolean p_155887_) -
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 p_155945_, BlockEntityType<T> p_155946_) -
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 p_223416_, ServerLevel p_223417_) private <T extends BlockEntity>
TickingBlockEntityLevelChunk.createTicker(T p_156376_, BlockEntityTicker<T> p_156377_) private <T extends BlockEntity>
voidLevelChunk.removeGameEventListener(T p_223413_, ServerLevel p_223414_) private <T extends BlockEntity>
voidLevelChunk.updateBlockEntityTicker(T p_156407_) Methods in net.minecraft.world.level.chunk that return BlockEntityModifier and TypeMethodDescriptionprivate BlockEntityLevelChunk.createBlockEntity(BlockPos p_62935_) EmptyLevelChunk.getBlockEntity(BlockPos p_62609_, LevelChunk.EntityCreationType p_62610_) ImposterProtoChunk.getBlockEntity(BlockPos p_62744_) LevelChunk.getBlockEntity(BlockPos p_62912_) LevelChunk.getBlockEntity(BlockPos p_62868_, LevelChunk.EntityCreationType p_62869_) ProtoChunk.getBlockEntity(BlockPos p_63257_) private BlockEntityLevelChunk.promotePendingBlockEntity(BlockPos p_62871_, CompoundTag p_62872_) 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 p_156391_) abstract voidChunkAccess.setBlockEntity(BlockEntity p_156114_) 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.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, 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> T ILevelExtension.getCapability(BlockCapability<T, C> cap, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity, C context) Retrieve a block capability. -
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.debug.block
Subclasses of BlockEntity in net.neoforged.neoforge.debug.blockMethods in net.neoforged.neoforge.debug.block that return BlockEntityModifier and TypeMethodDescriptionBlockPropertyTests.LightBlock.newBlockEntity(BlockPos pos, BlockState state) -
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.oldtest.block
Subclasses of BlockEntity in net.neoforged.neoforge.oldtest.blockModifier and TypeClassDescriptionprivate static classstatic classstatic classprivate static classMethods in net.neoforged.neoforge.oldtest.block that return BlockEntityModifier and TypeMethodDescriptionCustomHeadTest.CustomSkullBlock.newBlockEntity(BlockPos pos, BlockState state) CustomHeadTest.CustomWallSkullBlock.newBlockEntity(BlockPos pos, BlockState state) CustomSignsTest.CustomCeilingHangingSignBlock.newBlockEntity(BlockPos pos, BlockState state) CustomSignsTest.CustomStandingSignBlock.newBlockEntity(BlockPos pos, BlockState state) CustomSignsTest.CustomWallHangingSignBlock.newBlockEntity(BlockPos pos, BlockState state) CustomSignsTest.CustomWallSignBlock.newBlockEntity(BlockPos pos, BlockState state) FullPotsAccessorDemo.DioriteFlowerPotBlock.newBlockEntity(BlockPos pos, BlockState state) -
Uses of BlockEntity in net.neoforged.neoforge.oldtest.client.model
Subclasses of BlockEntity in net.neoforged.neoforge.oldtest.client.modelModifier and TypeClassDescriptionprivate static classstatic classMethods in net.neoforged.neoforge.oldtest.client.model that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityCustomItemDisplayContextTest.ItemHangerBlock.newBlockEntity(BlockPos pos, BlockState state) @Nullable BlockEntityMegaModelTest.TestBlock.newBlockEntity(BlockPos pos, BlockState state) -
Uses of BlockEntity in net.neoforged.neoforge.oldtest.misc
Subclasses of BlockEntity in net.neoforged.neoforge.oldtest.miscMethods in net.neoforged.neoforge.oldtest.misc that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntityGameTestTest.EnergyBlock.newBlockEntity(BlockPos pos, BlockState state) -
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 -
Uses of BlockEntity in net.neoforged.testframework.gametest
Methods in net.neoforged.testframework.gametest with type parameters of type BlockEntityModifier and TypeMethodDescription<T extends BlockEntity>
TExtendedGameTestHelper.getBlockEntity(int x, int y, int z, Class<T> type) <T extends BlockEntity>
TExtendedGameTestHelper.getBlockEntity(BlockPos pos, Class<T> type) <T extends BlockEntity>
TExtendedGameTestHelper.requireBlockEntity(int x, int y, int z, Class<T> type) <T extends BlockEntity>
TExtendedGameTestHelper.requireBlockEntity(BlockPos pos, Class<T> type) -
Uses of BlockEntity in net.neoforged.testframework.registration
Methods in net.neoforged.testframework.registration with type parameters of type BlockEntityModifier and TypeMethodDescription<B extends Block,E extends BlockEntity>
DeferredBlockBuilder<B> DeferredBlocks.registerBlockWithBEType(String name, BiFunction<BlockBehaviour.Properties, Supplier<BlockEntityType<E>>, ? extends B> func, org.apache.commons.lang3.function.TriFunction<BlockEntityType<?>, BlockPos, BlockState, E> beType, BlockBehaviour.Properties props)