Package net.minecraft.world.level.block
Interface EntityBlock
- All Known Implementing Classes:
AbstractBannerBlock
,AbstractChestBlock
,AbstractFurnaceBlock
,AbstractSkullBlock
,BannerBlock
,BarrelBlock
,BaseEntityBlock
,BeaconBlock
,BedBlock
,BeehiveBlock
,BellBlock
,BlastFurnaceBlock
,BlockPropertyTests.LightBlock
,BrewingStandBlock
,BrushableBlock
,CalibratedSculkSensorBlock
,CampfireBlock
,CeilingHangingSignBlock
,ChestBlock
,ChiseledBookShelfBlock
,CommandBlock
,ComparatorBlock
,ConduitBlock
,CrafterBlock
,CustomHeadTest.CustomSkullBlock
,CustomHeadTest.CustomWallSkullBlock
,CustomItemDisplayContextTest.ItemHangerBlock
,CustomSignsTest.CustomCeilingHangingSignBlock
,CustomSignsTest.CustomStandingSignBlock
,CustomSignsTest.CustomWallHangingSignBlock
,CustomSignsTest.CustomWallSignBlock
,DaylightDetectorBlock
,DecoratedPotBlock
,DispenserBlock
,DropperBlock
,EnchantingTableBlock
,EnderChestBlock
,EndGatewayBlock
,EndPortalBlock
,FullPotsAccessorDemo.DioriteFlowerPotBlock
,FurnaceBlock
,GameTestTest.EnergyBlock
,HopperBlock
,JigsawBlock
,JukeboxBlock
,LecternBlock
,MegaModelTest.TestBlock
,MovingPistonBlock
,PiglinWallSkullBlock
,PlayerHeadBlock
,PlayerWallHeadBlock
,SculkCatalystBlock
,SculkSensorBlock
,SculkShriekerBlock
,ShulkerBoxBlock
,SignBlock
,SkullBlock
,SmokerBlock
,SpawnerBlock
,StandingSignBlock
,StructureBlock
,TrappedChestBlock
,TrialSpawnerBlock
,VaultBlock
,WallBannerBlock
,WallHangingSignBlock
,WallSignBlock
,WallSkullBlock
,WitherSkullBlock
,WitherWallSkullBlock
public interface EntityBlock
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends BlockEntity>
GameEventListenergetListener
(ServerLevel pLevel, T pBlockEntity) default <T extends BlockEntity>
BlockEntityTicker<T> getTicker
(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) newBlockEntity
(BlockPos pPos, BlockState pState)
-
Method Details
-
newBlockEntity
-
getTicker
@Nullable default <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) -
getListener
@Nullable default <T extends BlockEntity> GameEventListener getListener(ServerLevel pLevel, T pBlockEntity)
-