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) -
Uses of BlockEntity in net.minecraft.client
Methods in net.minecraft.client with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate void
Minecraft.addCustomNbtData
(ItemStack pStack, BlockEntity pBlockEntity, RegistryAccess pRegistryAccess) -
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 TypeInterfaceDescriptioninterface
BlockEntityRenderer<T extends BlockEntity>
interface
BlockEntityRendererProvider<T extends BlockEntity>
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) <E extends BlockEntity>
booleanBlockEntityRenderDispatcher.renderItem
(E pBlockEntity, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) private static <T extends BlockEntity>
voidBlockEntityRenderDispatcher.setupAndRender
(BlockEntityRenderer<T> pRenderer, T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource) Methods in net.minecraft.client.renderer.blockentity with parameters of type BlockEntityModifier and TypeMethodDescriptionprivate static void
BlockEntityRenderDispatcher.tryRender
(BlockEntity pBlockEntity, Runnable pRenderer) -
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.gametest.framework
Methods in net.minecraft.gametest.framework with type parameters of type BlockEntityModifier and TypeMethodDescription<T extends BlockEntity>
voidGameTestHelper.assertBlockEntityData
(BlockPos pPos, Predicate<T> pPredicate, Supplier<String> pExceptionMessage) <T extends BlockEntity>
TGameTestHelper.getBlockEntity
(BlockPos pPos) -
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 pPos, BlockEntityType<T> pBlockEntityType) <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) 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, DirectionProperty 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 pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BeaconBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BeehiveBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BellBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BlastFurnaceBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> BrewingStandBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <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 pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> CeilingHangingSignBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> ChestBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> ConduitBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> CrafterBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> DaylightDetectorBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> EnchantingTableBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> EnderChestBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> EndGatewayBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) default <T extends BlockEntity>
BlockEntityTicker<T> EntityBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> FurnaceBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> HopperBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> JukeboxBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <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 pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> SculkShriekerBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> ShulkerBoxBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> SignBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> SmokerBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <T extends BlockEntity>
BlockEntityTicker<T> SpawnerBlock.getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) <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 pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) Methods in net.minecraft.world.level.block that return BlockEntityModifier and TypeMethodDescriptionAbstractBannerBlock.newBlockEntity
(BlockPos pPos, BlockState pState) AbstractSkullBlock.newBlockEntity
(BlockPos pPos, BlockState pState) BarrelBlock.newBlockEntity
(BlockPos pPos, BlockState pState) BeaconBlock.newBlockEntity
(BlockPos pPos, BlockState pState) BedBlock.newBlockEntity
(BlockPos pPos, BlockState pState) BeehiveBlock.newBlockEntity
(BlockPos pPos, BlockState pState) BellBlock.newBlockEntity
(BlockPos pPos, BlockState pState) BlastFurnaceBlock.newBlockEntity
(BlockPos pPos, BlockState pState) BrewingStandBlock.newBlockEntity
(BlockPos pPos, BlockState pState) BrushableBlock.newBlockEntity
(BlockPos pPos, BlockState pState) CalibratedSculkSensorBlock.newBlockEntity
(BlockPos p_277925_, BlockState p_277938_) CampfireBlock.newBlockEntity
(BlockPos pPos, BlockState pState) CeilingHangingSignBlock.newBlockEntity
(BlockPos pPos, BlockState pState) ChestBlock.newBlockEntity
(BlockPos pPos, BlockState pState) ChiseledBookShelfBlock.newBlockEntity
(BlockPos pPos, BlockState pState) CommandBlock.newBlockEntity
(BlockPos pPos, BlockState pState) ComparatorBlock.newBlockEntity
(BlockPos pPos, BlockState pState) ConduitBlock.newBlockEntity
(BlockPos pPos, BlockState pState) CrafterBlock.newBlockEntity
(BlockPos pPos, BlockState pState) DaylightDetectorBlock.newBlockEntity
(BlockPos pPos, BlockState pState) DecoratedPotBlock.newBlockEntity
(BlockPos p_273396_, BlockState p_272674_) DispenserBlock.newBlockEntity
(BlockPos pPos, BlockState pState) DropperBlock.newBlockEntity
(BlockPos p_153179_, BlockState p_153180_) EnchantingTableBlock.newBlockEntity
(BlockPos pPos, BlockState pState) EnderChestBlock.newBlockEntity
(BlockPos pPos, BlockState pState) EndGatewayBlock.newBlockEntity
(BlockPos pPos, BlockState pState) EndPortalBlock.newBlockEntity
(BlockPos pPos, BlockState pState) EntityBlock.newBlockEntity
(BlockPos pPos, BlockState pState) FurnaceBlock.newBlockEntity
(BlockPos pPos, BlockState pState) HopperBlock.newBlockEntity
(BlockPos pPos, BlockState pState) JigsawBlock.newBlockEntity
(BlockPos pPos, BlockState pState) JukeboxBlock.newBlockEntity
(BlockPos pPos, BlockState pState) LecternBlock.newBlockEntity
(BlockPos pPos, BlockState pState) SculkCatalystBlock.newBlockEntity
(BlockPos p_222117_, BlockState p_222118_) SculkSensorBlock.newBlockEntity
(BlockPos pPos, BlockState pState) SculkShriekerBlock.newBlockEntity
(BlockPos pPos, BlockState pState) ShulkerBoxBlock.newBlockEntity
(BlockPos pPos, BlockState pState) SignBlock.newBlockEntity
(BlockPos pPos, BlockState pState) SmokerBlock.newBlockEntity
(BlockPos pPos, BlockState pState) SpawnerBlock.newBlockEntity
(BlockPos pPos, BlockState pState) StructureBlock.newBlockEntity
(BlockPos pPos, BlockState pState) TrappedChestBlock.newBlockEntity
(BlockPos pPos, BlockState pState) TrialSpawnerBlock.newBlockEntity
(BlockPos p_311941_, BlockState p_312821_) VaultBlock.newBlockEntity
(BlockPos p_324543_, BlockState p_323652_) WallHangingSignBlock.newBlockEntity
(BlockPos pPos, BlockState pState) 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) Called after a player has successfully harvested this block.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) Called after a player has successfully harvested this block.void
IceBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) Called after a player has successfully harvested this block.void
TurtleEggBlock.playerDestroy
(Level pLevel, Player pPlayer, BlockPos pPos, BlockState pState, BlockEntity pTe, ItemStack pStack) Called after a player has successfully harvested this block.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>
static final class
BlockEntityType.Builder<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
Methods 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> pFactory, Block... pValidBlocks) private static <T extends BlockEntity>
BlockEntityType<T> BlockEntityType.register
(String pKey, BlockEntityType.Builder<T> pBuilder) 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 pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) Methods in net.minecraft.world.level.block.piston that return BlockEntityModifier and TypeMethodDescriptionMovingPistonBlock.newBlockEntity
(BlockPos pPos, BlockState pState) 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 pPos, LevelChunk.EntityCreationType pCreationType) ImposterProtoChunk.getBlockEntity
(BlockPos pPos) LevelChunk.getBlockEntity
(BlockPos pPos) LevelChunk.getBlockEntity
(BlockPos pPos, LevelChunk.EntityCreationType pCreationType) ProtoChunk.getBlockEntity
(BlockPos pPos) 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 pBlockEntity) void
LevelChunk.addAndRegisterBlockEntity
(BlockEntity pBlockEntity) abstract void
ChunkAccess.setBlockEntity
(BlockEntity pBlockEntity) void
EmptyLevelChunk.setBlockEntity
(BlockEntity pBlockEntity) void
ImposterProtoChunk.setBlockEntity
(BlockEntity pBlockEntity) void
LevelChunk.setBlockEntity
(BlockEntity pBlockEntity) void
ProtoChunk.setBlockEntity
(BlockEntity pBlockEntity) -
Uses of BlockEntity in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type BlockEntityModifier and TypeFieldDescriptionstatic final LootContextParam
<BlockEntity> LootContextParams.BLOCK_ENTITY
-
Uses of BlockEntity in net.minecraft.world.ticks
Methods in net.minecraft.world.ticks that return BlockEntityModifier and TypeMethodDescriptionContainerSingleItem.BlockContainerSingleItem.getContainerBlockEntity()
-
Uses of BlockEntity in net.neoforged.neoforge.capabilities
Methods in net.neoforged.neoforge.capabilities with type parameters of type BlockEntityModifier and TypeMethodDescription<T,
C extends @Nullable Object, BE extends BlockEntity>
voidRegisterCapabilitiesEvent.registerBlockEntity
(BlockCapability<T, C> capability, BlockEntityType<BE> blockEntityType, ICapabilityProvider<? super BE, C, T> provider) Register a capability provider for a block entity type.Methods in net.neoforged.neoforge.capabilities with parameters of type BlockEntityModifier and TypeMethodDescriptionBlockCapability.getCapability
(Level level, BlockPos pos, @Nullable BlockState state, @Nullable BlockEntity blockEntity, C context) IBlockCapabilityProvider.getCapability
(Level level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, C context) Returns the capability, 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.client.model.data
Methods in net.neoforged.neoforge.client.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.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.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.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, 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 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.items
Methods in net.neoforged.neoforge.items with parameters of type BlockEntityModifier 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
Subclasses of BlockEntity in net.neoforged.neoforge.oldtest.blockModifier and TypeClassDescriptionprivate static class
static class
static class
private static class
Methods 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 class
static class
Methods in net.neoforged.neoforge.oldtest.client.model that return BlockEntityModifier 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
Subclasses of BlockEntity in net.neoforged.neoforge.oldtest.miscMethods in net.neoforged.neoforge.oldtest.misc that return BlockEntityModifier and TypeMethodDescription@Nullable BlockEntity
GameTestTest.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_UPDATE
A 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)