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 boolean
BlockPredicate.matchesBlockEntity
(LevelReader pLevel, BlockEntity pBlockEntity, NbtPredicate pNbtPredicate) private static boolean
BlockPredicate.matchesComponents
(BlockEntity pEntity, DataComponentMatchers pComponents) -
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.globalBlockEntities
Global block entities; these are always rendered, even if off-screen.Methods in net.minecraft.client.renderer with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic Material
Sheets.chooseMaterial
(BlockEntity pBlockEntity, ChestType pChestType, boolean pHoliday) Method parameters in net.minecraft.client.renderer with type arguments of type BlockEntityModifier and TypeMethodDescriptionvoid
LevelRenderer.iterateVisibleBlockEntities
(Consumer<BlockEntity> blockEntityConsumer) void
LevelRenderer.updateGlobalBlockEntities
(Collection<BlockEntity> pBlockEntitiesToRemove, Collection<BlockEntity> pBlockEntitiesToAdd) -
Uses of BlockEntity in net.minecraft.client.renderer.blockentity
Classes in net.minecraft.client.renderer.blockentity with type parameters of type BlockEntityModifier and TypeClassDescriptionclass
BeaconRenderer<T extends BlockEntity & BeaconBeamOwner>
interface
BlockEntityRenderer<T extends BlockEntity>
interface
BlockEntityRendererProvider<T extends BlockEntity>
class
class
BrightnessCombiner<S extends BlockEntity>
class
ChestRenderer<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 pBlockEntity) static <T extends BlockEntity>
voidBlockEntityRenderers.register
(BlockEntityType<? extends T> pType, BlockEntityRendererProvider<T> pRenderProvider) <E extends BlockEntity>
voidBlockEntityRenderDispatcher.render
(E pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource) private static <T extends BlockEntity>
voidBlockEntityRenderDispatcher.setupAndRender
(BlockEntityRenderer<T> pRenderer, T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, Vec3 pCameraPos) Methods in net.minecraft.client.renderer.blockentity with parameters of type BlockEntityModifier and TypeMethodDescriptionBlockEntityWithBoundingBoxRenderer.getRenderBoundingBox
(BlockEntity blockEntity) -
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.blockEntities
final List
<BlockEntity> SectionCompiler.Results.blockEntities
final List
<BlockEntity> SectionCompiler.Results.globalBlockEntities
private final Set
<BlockEntity> SectionRenderDispatcher.RenderSection.globalBlockEntities
(package private) final List
<BlockEntity> SectionRenderDispatcher.CompiledSection.renderableBlockEntities
Methods in net.minecraft.client.renderer.chunk with type parameters of type BlockEntityModifier and TypeMethodDescriptionprivate <E extends BlockEntity>
voidSectionCompiler.handleBlockEntity
(SectionCompiler.Results pResults, E pBlockEntity) Methods in net.minecraft.client.renderer.chunk that return BlockEntityModifier and TypeMethodDescriptionRenderChunk.getBlockEntity
(BlockPos pPos) RenderChunkRegion.getBlockEntity
(BlockPos pPos) 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) void
SectionRenderDispatcher.RenderSection.updateGlobalBlockEntities
(Collection<BlockEntity> pBlockEntities) -
Uses of BlockEntity in net.minecraft.client.renderer.entity.state
Methods in net.minecraft.client.renderer.entity.state that return BlockEntity -
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 pPos, Class<T> pBlockEntityClass, Predicate<T> pPredicate, Supplier<Component> pMessage) <T extends BlockEntity>
TGameTestHelper.getBlockEntity
(BlockPos pPos, Class<T> pClazz) -
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 pBlockEntity) ClientboundBlockEntityDataPacket.create
(BlockEntity pBlockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> pDataGetter) (package private) static ClientboundLevelChunkPacketData.BlockEntityInfo
ClientboundLevelChunkPacketData.BlockEntityInfo.create
(BlockEntity pBlockEntity) Method parameters in net.minecraft.network.protocol.game with type arguments of type BlockEntityModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create
(BlockEntity pBlockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> pDataGetter) -
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 boolean
Container.stillValidBlockEntity
(BlockEntity pBlockEntity, Player pPlayer) static boolean
Container.stillValidBlockEntity
(BlockEntity pBlockEntity, Player pPlayer, float pDistance) -
Uses of BlockEntity in net.minecraft.world.inventory
Methods in net.minecraft.world.inventory with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic int
AbstractContainerMenu.getRedstoneSignalFromBlockEntity
(BlockEntity pBlockEntity) 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 TypeMethodDescriptionboolean
CustomData.loadInto
(BlockEntity pBlockEntity, HolderLookup.Provider pLevelRegistry) -
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.freshBlockEntities
private 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 pPos, BlockEntityType<T> pBlockEntityType) default <T extends BlockEntity>
Optional<T> CommonLevelAccessor.getBlockEntity
(BlockPos p_151452_, BlockEntityType<T> p_151453_) <T extends BlockEntity>
Optional<T> LevelSimulatedReader.getBlockEntity
(BlockPos pPos, BlockEntityType<T> pType) Methods in net.minecraft.world.level that return BlockEntityModifier and TypeMethodDescriptionBlockGetter.getBlockEntity
(BlockPos pPos) EmptyBlockAndTintGetter.getBlockEntity
(BlockPos p_363675_) EmptyBlockGetter.getBlockEntity
(BlockPos pPos) Level.getBlockEntity
(BlockPos pPos) PathNavigationRegion.getBlockEntity
(BlockPos pPos) 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 TypeMethodDescriptionvoid
Level.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> pBlockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> pDoubleBlockTypeGetter, Function<BlockState, Direction> pDirectionGetter, Property<Direction> pDirectionProperty, BlockState pState, LevelAccessor pLevel, BlockPos pPos, BiPredicate<LevelAccessor, BlockPos> pBlockedChestTest) protected static <T extends BlockEntity>
BlockEntityTicker<T> AbstractFurnaceBlock.createFurnaceTicker
(Level pLevel, BlockEntityType<T> pServerType, BlockEntityType<? extends AbstractFurnaceBlockEntity> pClientType) protected static <E extends BlockEntity,
A extends BlockEntity>
BlockEntityTicker<A> BaseEntityBlock.createTickerHelper
(BlockEntityType<A> pServerType, BlockEntityType<E> pClientType, BlockEntityTicker<? super E> pTicker) protected static <E extends BlockEntity,
A extends BlockEntity>
BlockEntityTicker<A> BaseEntityBlock.createTickerHelper
(BlockEntityType<A> pServerType, BlockEntityType<E> pClientType, BlockEntityTicker<? super E> pTicker) default <T extends BlockEntity>
GameEventListenerEntityBlock.getListener
(ServerLevel pLevel, T pBlockEntity) <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> CreakingHeartBlock.getTicker
(Level p_379447_, BlockState p_379641_, BlockEntityType<T> p_380325_) <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 pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <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_) CreakingHeartBlock.newBlockEntity
(BlockPos p_380178_, BlockState p_380317_) 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 pPos, BlockState pState) 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_) TestBlock.newBlockEntity
(BlockPos p_397356_, BlockState p_397468_) TestInstanceBlock.newBlockEntity
(BlockPos p_397973_, BlockState p_397522_) 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 void
Block.dropResources
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, BlockEntity pBlockEntity) static void
Block.dropResources
(BlockState pState, Level pLevel, BlockPos pPos, BlockEntity pBlockEntity, Entity pEntity, ItemStack pTool) Block.getDrops
(BlockState pState, ServerLevel pLevel, BlockPos pPos, BlockEntity pBlockEntity) Block.getDrops
(BlockState pState, ServerLevel pLevel, BlockPos pPos, BlockEntity pBlockEntity, Entity pEntity, ItemStack pTool) int
DropExperienceBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
RedStoneOreBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkCatalystBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkSensorBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkShriekerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SpawnerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) void
BeehiveBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) void
Block.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pBlockEntity, ItemStack pTool) Called after a player has successfully harvested this block.void
DoublePlantBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) void
IceBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) void
TurtleEggBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) private void
CrafterBlock.setBlockEntityTriggered
(BlockEntity pBlockEntity, boolean pTriggered) -
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 TypeInterfaceDescriptioninterface
BlockEntityTicker<T extends BlockEntity>
class
BlockEntityType<T extends BlockEntity>
static interface
BlockEntityType.BlockEntitySupplier<T extends BlockEntity>
Subclasses of BlockEntity in net.minecraft.world.level.block.entityModifier 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
class
class
class
Methods in net.minecraft.world.level.block.entity with type parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static <T extends BlockEntity>
BlockEntityType<T> BlockEntityType.register
(String pName, BlockEntityType.BlockEntitySupplier<? extends T> pFactory, Block... pValidBlocks) Methods in net.minecraft.world.level.block.entity that return BlockEntityModifier and TypeMethodDescriptionDecoratedPotBlockEntity.getContainerBlockEntity()
JukeboxBlockEntity.getContainerBlockEntity()
static BlockEntity
BlockEntity.loadStatic
(BlockPos pPos, BlockState pState, CompoundTag pTag, HolderLookup.Provider pRegistries) -
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 BlockEntity
MovingPistonBlock.newMovingBlockEntity
(BlockPos pPos, BlockState pBlockState, BlockState pMovedState, Direction pDirection, boolean pExtending, boolean pIsSourcePiston) -
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 pLevel, BlockEntityType<T> pBlockEntityType) -
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) class
LevelChunk.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.blockEntities
Methods in net.minecraft.world.level.chunk with type parameters of type BlockEntityModifier and TypeMethodDescriptionprivate <T extends BlockEntity>
voidLevelChunk.addGameEventListener
(T pBlockEntity, ServerLevel pLevel) private <T extends BlockEntity>
TickingBlockEntityLevelChunk.createTicker
(T pBlockEntity, BlockEntityTicker<T> pTicker) private <T extends BlockEntity>
voidLevelChunk.removeGameEventListener
(T pBlockEntity, ServerLevel pLevel) private <T extends BlockEntity>
voidLevelChunk.updateBlockEntityTicker
(T pBlockEntity) Methods in net.minecraft.world.level.chunk that return BlockEntityModifier and TypeMethodDescriptionprivate BlockEntity
LevelChunk.createBlockEntity
(BlockPos pPos) EmptyLevelChunk.getBlockEntity
(BlockPos p_62609_, LevelChunk.EntityCreationType p_62610_) ImposterProtoChunk.getBlockEntity
(BlockPos p_62744_) LevelChunk.getBlockEntity
(BlockPos p_62912_) LevelChunk.getBlockEntity
(BlockPos pPos, LevelChunk.EntityCreationType pCreationType) ProtoChunk.getBlockEntity
(BlockPos p_63257_) private BlockEntity
LevelChunk.promotePendingBlockEntity
(BlockPos pPos, CompoundTag pTag) 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 TypeMethodDescriptionvoid
EmptyLevelChunk.addAndRegisterBlockEntity
(BlockEntity p_156346_) void
LevelChunk.addAndRegisterBlockEntity
(BlockEntity pBlockEntity) abstract void
ChunkAccess.setBlockEntity
(BlockEntity pBlockEntity) 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
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type BlockEntityModifier and TypeFieldDescriptionstatic final ContextKey
<BlockEntity> LootContextParams.BLOCK_ENTITY
-
Uses of BlockEntity in net.minecraft.world.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, ornull
if 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 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
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 TypeInterfaceDescriptioninterface
IBlockEntityRendererExtension<T extends BlockEntity>
-
Uses of BlockEntity in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type BlockEntityModifier and TypeMethodDescriptionstatic void
CommonHooks.handleBlockDrops
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Fires theBlockDropsEvent
when 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> T
ILevelExtension.getCapability
(BlockCapability<T, @Nullable Void> cap, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity) Retrieve a block capability with no context.default int
IBlockExtension.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 int
IBlockStateExtension.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 BlockEntity
BlockSnapshot.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.spawner
Methods 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 underlyingBlockEntity
orEntity
that performed the spawn.Constructor parameters in net.neoforged.neoforge.event.entity.living with type arguments of type BlockEntityModifierConstructorDescriptionFinalizeSpawnEvent
(Mob entity, ServerLevelAccessor level, double x, double y, double z, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, @Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> spawner) -
Uses of BlockEntity in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as BlockEntityMethods in net.neoforged.neoforge.event.level that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntity
BlockDropsEvent.getBlockEntity()
Returns the block entity from the current position, if available.Constructors in net.neoforged.neoforge.event.level with parameters of type BlockEntityModifierConstructorDescriptionBlockDropsEvent
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Constructs a new BlockDropsEvent -
Uses of BlockEntity in net.neoforged.neoforge.model.data
Methods in net.neoforged.neoforge.model.data with parameters of type BlockEntityModifier and TypeMethodDescriptionvoid
ModelDataManager.requestRefresh
(BlockEntity blockEntity) Request a refresh of the stored data for the givenBlockEntity
. -
Uses of BlockEntity in net.neoforged.neoforge.server.timings
Fields in net.neoforged.neoforge.server.timings with type parameters of type BlockEntityModifier and TypeFieldDescriptionstatic final TimeTracker
<BlockEntity> TimeTracker.BLOCK_ENTITY_UPDATE
A tracker for timing tile entity update