Uses of Class
net.minecraft.world.level.block.entity.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.client
Modifier and TypeMethodDescriptionprivate void
Minecraft.addCustomNbtData
(ItemStack p_263370_, BlockEntity p_263368_) -
Uses of BlockEntity in net.minecraft.client.renderer
Modifier and TypeFieldDescriptionprivate final Set<BlockEntity>
LevelRenderer.globalBlockEntities
Modifier and TypeMethodDescriptionstatic Material
Sheets.chooseMaterial
(BlockEntity p_110768_, ChestType p_110769_, boolean p_110770_) Modifier and TypeMethodDescriptionvoid
LevelRenderer.iterateVisibleBlockEntities
(Consumer<BlockEntity> blockEntityConsumer) void
LevelRenderer.updateGlobalBlockEntities
(Collection<BlockEntity> p_109763_, Collection<BlockEntity> p_109764_) -
Uses of BlockEntity in net.minecraft.client.renderer.blockentity
Modifier and TypeInterfaceDescriptioninterface
BlockEntityRenderer<T extends BlockEntity>
interface
BlockEntityRendererProvider<T extends BlockEntity>
class
BrightnessCombiner<S extends BlockEntity>
class
ChestRenderer<T extends BlockEntity & LidBlockEntity>
Modifier 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_) Modifier and TypeMethodDescriptionprivate static void
BlockEntityRenderDispatcher.tryRender
(BlockEntity p_112279_, Runnable p_112280_) -
Uses of BlockEntity in net.minecraft.client.renderer.chunk
Modifier and TypeFieldDescriptionprivate final Map<BlockPos,
BlockEntity> RenderChunk.blockEntities
final List<BlockEntity>
SectionRenderDispatcher.RenderSection.RebuildTask.CompileResults.blockEntities
private final Set<BlockEntity>
SectionRenderDispatcher.RenderSection.globalBlockEntities
final List<BlockEntity>
SectionRenderDispatcher.RenderSection.RebuildTask.CompileResults.globalBlockEntities
(package private) final List<BlockEntity>
SectionRenderDispatcher.CompiledSection.renderableBlockEntities
Modifier and TypeMethodDescriptionprivate <E extends BlockEntity>
voidSectionRenderDispatcher.RenderSection.RebuildTask.handleBlockEntity
(SectionRenderDispatcher.RenderSection.RebuildTask.CompileResults p_294198_, E p_296214_) Modifier and TypeMethodDescriptionRenderChunk.getBlockEntity
(BlockPos p_200452_) RenderChunkRegion.getBlockEntity
(BlockPos p_112945_) Modifier and TypeMethodDescriptionSectionRenderDispatcher.CompiledSection.getRenderableBlockEntities()
Modifier and TypeMethodDescription(package private) void
SectionRenderDispatcher.RenderSection.updateGlobalBlockEntities
(Collection<BlockEntity> p_296155_) -
Uses of BlockEntity in net.minecraft.gametest.framework
-
Uses of BlockEntity in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create
(BlockEntity p_195641_) ClientboundBlockEntityDataPacket.create
(BlockEntity p_195643_, Function<BlockEntity, CompoundTag> p_195644_) (package private) static ClientboundLevelChunkPacketData.BlockEntityInfo
ClientboundLevelChunkPacketData.BlockEntityInfo.create
(BlockEntity p_195692_) Modifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create
(BlockEntity p_195643_, Function<BlockEntity, CompoundTag> p_195644_) -
Uses of BlockEntity in net.minecraft.server.commands.data
-
Uses of BlockEntity in net.minecraft.server.level
-
Uses of BlockEntity in net.minecraft.world
Modifier and TypeMethodDescriptionstatic boolean
Container.stillValidBlockEntity
(BlockEntity p_273154_, Player p_273222_) static boolean
Container.stillValidBlockEntity
(BlockEntity p_272877_, Player p_272670_, int p_273411_) -
Uses of BlockEntity in net.minecraft.world.inventory
Modifier and TypeMethodDescriptionstatic int
AbstractContainerMenu.getRedstoneSignalFromBlockEntity
(BlockEntity p_38919_) -
Uses of BlockEntity in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate final ArrayList<BlockEntity>
Level.freshBlockEntities
private final ArrayList<BlockEntity>
Modifier 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_) Modifier and TypeMethodDescriptionBlockGetter.getBlockEntity
(BlockPos p_45570_) EmptyBlockGetter.getBlockEntity
(BlockPos p_45867_) Level.getBlockEntity
(BlockPos p_46716_) PathNavigationRegion.getBlockEntity
(BlockPos p_47180_) BaseSpawner.getSpawnerBlockEntity()
Modifier and TypeMethodDescriptionvoid
Level.addFreshBlockEntities
(Collection<BlockEntity> beList) -
Uses of BlockEntity in net.minecraft.world.level.block
Modifier 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>EnchantmentTableBlock.getTicker
(Level p_153182_, BlockState p_153183_, BlockEntityType<T> p_153184_) <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>WallHangingSignBlock.getTicker
(Level p_279316_, BlockState p_279345_, BlockEntityType<T> p_279384_) Modifier 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_) EnchantmentTableBlock.newBlockEntity
(BlockPos p_153186_, BlockState p_153187_) 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_) WallHangingSignBlock.newBlockEntity
(BlockPos p_250745_, BlockState p_250905_) Modifier and TypeMethodDescriptionstatic void
Block.dropResources
(BlockState p_49893_, LevelAccessor p_49894_, BlockPos p_49895_, BlockEntity p_49896_) static void
Block.dropResources
(BlockState p_49882_, Level p_49883_, BlockPos p_49884_, BlockEntity p_49885_, Entity p_49886_, ItemStack p_49887_) static void
Block.dropResources
(BlockState p_49882_, Level p_49883_, BlockPos p_49884_, BlockEntity p_49885_, Entity p_49886_, ItemStack p_49887_, boolean dropXp) 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_) void
BeehiveBlock.playerDestroy
(Level p_49584_, Player p_49585_, BlockPos p_49586_, BlockState p_49587_, BlockEntity p_49588_, ItemStack p_49589_) void
Block.playerDestroy
(Level p_49827_, Player p_49828_, BlockPos p_49829_, BlockState p_49830_, BlockEntity p_49831_, ItemStack p_49832_) void
DoublePlantBlock.playerDestroy
(Level p_52865_, Player p_52866_, BlockPos p_52867_, BlockState p_52868_, BlockEntity p_52869_, ItemStack p_52870_) void
IceBlock.playerDestroy
(Level p_54157_, Player p_54158_, BlockPos p_54159_, BlockState p_54160_, BlockEntity p_54161_, ItemStack p_54162_) void
TurtleEggBlock.playerDestroy
(Level p_57771_, Player p_57772_, BlockPos p_57773_, BlockState p_57774_, BlockEntity p_57775_, ItemStack p_57776_) private void
CrafterBlock.setBlockEntityTriggered
(BlockEntity p_307610_, boolean p_307577_) -
Uses of BlockEntity in net.minecraft.world.level.block.entity
Modifier and TypeInterfaceDescriptioninterface
BlockEntityTicker<T extends BlockEntity>
class
BlockEntityType<T extends BlockEntity>
static interface
BlockEntityType.BlockEntitySupplier<T extends BlockEntity>
static final class
BlockEntityType.Builder<T extends BlockEntity>
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier 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_) Modifier and TypeMethodDescriptionDecoratedPotBlockEntity.getContainerBlockEntity()
JukeboxBlockEntity.getContainerBlockEntity()
static BlockEntity
BlockEntity.loadStatic
(BlockPos p_155242_, BlockState p_155243_, CompoundTag p_155244_) -
Uses of BlockEntity in net.minecraft.world.level.block.piston
Modifier and TypeMethodDescription<T extends BlockEntity>
BlockEntityTicker<T>MovingPistonBlock.getTicker
(Level p_155875_, BlockState p_155876_, BlockEntityType<T> p_155877_) Modifier and TypeMethodDescriptionMovingPistonBlock.newBlockEntity
(BlockPos p_155879_, BlockState p_155880_) static BlockEntity
MovingPistonBlock.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
Modifier 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
-
Uses of BlockEntity in net.minecraft.world.level.chunk
Modifier and TypeClassDescription(package private) class
LevelChunk.BoundTickingBlockEntity<T extends BlockEntity>
Modifier and TypeFieldDescriptionprotected final Map<BlockPos,
BlockEntity> ChunkAccess.blockEntities
Modifier 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_) Modifier and TypeMethodDescriptionprivate BlockEntity
LevelChunk.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 BlockEntity
LevelChunk.promotePendingBlockEntity
(BlockPos p_62871_, CompoundTag p_62872_) Modifier and TypeMethodDescriptionvoid
EmptyLevelChunk.addAndRegisterBlockEntity
(BlockEntity p_156346_) void
LevelChunk.addAndRegisterBlockEntity
(BlockEntity p_156391_) abstract void
ChunkAccess.setBlockEntity
(BlockEntity p_156114_) void
EmptyLevelChunk.setBlockEntity
(BlockEntity p_156344_) void
ImposterProtoChunk.setBlockEntity
(BlockEntity p_156358_) void
LevelChunk.setBlockEntity
(BlockEntity p_156374_) void
ProtoChunk.setBlockEntity
(BlockEntity p_156488_) -
Uses of BlockEntity in net.minecraft.world.level.storage.loot.parameters
Modifier and TypeFieldDescriptionstatic final LootContextParam<BlockEntity>
LootContextParams.BLOCK_ENTITY
-
Uses of BlockEntity in net.minecraft.world.ticks
-
Uses of BlockEntity in net.neoforged.neoforge.capabilities
Modifier 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.Modifier 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, ornull
if not available. -
Uses of BlockEntity in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic <T extends BlockEntity>
booleanClientHooks.isBlockEntityRendererVisible
(BlockEntityRenderDispatcher dispatcher, BlockEntity blockEntity, Frustum frustum) Modifier and TypeMethodDescriptionprivate static void
BlockEntityRenderBoundsDebugRenderer.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
Modifier 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
Modifier and TypeInterfaceDescriptioninterface
IBlockEntityRendererExtension<T extends BlockEntity>
-
Uses of BlockEntity in net.neoforged.neoforge.client.model.data
Modifier and TypeMethodDescriptionvoid
ModelDataManager.Active.requestRefresh
(BlockEntity blockEntity) Request a refresh of the stored data for the givenBlockEntity
. -
Uses of BlockEntity in net.neoforged.neoforge.common.extensions
Modifier 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
Modifier and TypeMethodDescriptionprivate static @Nullable CompoundTag
BlockSnapshot.getBlockEntityTag
(@Nullable BlockEntity te) -
Uses of BlockEntity in net.neoforged.neoforge.debug.block
Modifier and TypeMethodDescriptionBlockPropertyTests.LightBlock.newBlockEntity
(BlockPos pos, BlockState state) -
Uses of BlockEntity in net.neoforged.neoforge.items
Modifier and TypeMethodDescriptionprivate static ItemStack
VanillaInventoryCodeHooks.insertStack
(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack, int slot) Copied from TileEntityHopper#insertStack and added capability supportprivate static ItemStack
VanillaInventoryCodeHooks.putStackInInventoryAllSlots
(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack) -
Uses of BlockEntity in net.neoforged.neoforge.oldtest.block
Modifier and TypeClassDescriptionprivate static class
static class
static class
private static class
Modifier 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
Modifier and TypeClassDescriptionprivate static class
static class
Modifier and TypeMethodDescription@Nullable BlockEntity
CustomItemDisplayContextTest.ItemHangerBlock.newBlockEntity
(BlockPos pos, BlockState state) @Nullable BlockEntity
MegaModelTest.TestBlock.newBlockEntity
(BlockPos pos, BlockState state) -
Uses of BlockEntity in net.neoforged.neoforge.oldtest.misc
Modifier and TypeMethodDescription@Nullable BlockEntity
GameTestTest.EnergyBlock.newBlockEntity
(BlockPos pos, BlockState state) -
Uses of BlockEntity in net.neoforged.neoforge.server.timings
Modifier and TypeFieldDescriptionstatic final TimeTracker<BlockEntity>
TimeTracker.BLOCK_ENTITY_UPDATE
A tracker for timing tile entity update -
Uses of BlockEntity in net.neoforged.testframework.gametest
Modifier 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
Modifier 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)