Package net.minecraft.block
Interface BlockEntityProvider
- All Known Implementing Classes:
AbstractBannerBlock,AbstractChestBlock,AbstractFurnaceBlock,AbstractSignBlock,AbstractSkullBlock,BannerBlock,BarrelBlock,BeaconBlock,BedBlock,BeehiveBlock,BellBlock,BlastFurnaceBlock,BlockWithEntity,BrewingStandBlock,CampfireBlock,ChestBlock,CommandBlock,ComparatorBlock,ConduitBlock,DaylightDetectorBlock,DispenserBlock,DropperBlock,EnchantingTableBlock,EnderChestBlock,EndGatewayBlock,EndPortalBlock,FurnaceBlock,HopperBlock,JigsawBlock,JukeboxBlock,LecternBlock,PistonExtensionBlock,PlayerSkullBlock,SculkSensorBlock,ShulkerBoxBlock,SignBlock,SkullBlock,SmokerBlock,SpawnerBlock,StructureBlock,TrappedChestBlock,WallBannerBlock,WallPlayerSkullBlock,WallSignBlock,WallSkullBlock,WallWitherSkullBlock,WitherSkullBlock
public interface BlockEntityProvider
-
Method Summary
Modifier and Type Method Description BlockEntitycreateBlockEntity(BlockPos pos, BlockState state)default <T extends BlockEntity>
GameEventListenergetGameEventListener(World world, T blockEntity)default <T extends BlockEntity>
BlockEntityTicker<T>getTicker(World world, BlockState state, BlockEntityType<T> type)
-
Method Details
-
createBlockEntity
-
getTicker
@Nullable default <T extends BlockEntity> BlockEntityTicker<T> getTicker(World world, BlockState state, BlockEntityType<T> type) -
getGameEventListener
@Nullable default <T extends BlockEntity> GameEventListener getGameEventListener(World world, T blockEntity)
-