Interface EntityBlock
- All Known Implementing Classes:
AbstractBannerBlock, AbstractChestBlock, AbstractFurnaceBlock, AbstractSkullBlock, BannerBlock, BarrelBlock, BaseEntityBlock, BeaconBlock, BedBlock, BeehiveBlock, BellBlock, BlastFurnaceBlock, BrewingStandBlock, BrushableBlock, CalibratedSculkSensorBlock, CampfireBlock, CeilingHangingSignBlock, ChestBlock, ChiseledBookShelfBlock, CommandBlock, ComparatorBlock, ConduitBlock, CopperChestBlock, CopperGolemStatueBlock, CrafterBlock, CreakingHeartBlock, DaylightDetectorBlock, DecoratedPotBlock, DispenserBlock, DropperBlock, EnchantingTableBlock, EnderChestBlock, EndGatewayBlock, EndPortalBlock, FurnaceBlock, HopperBlock, JigsawBlock, JukeboxBlock, LecternBlock, MovingPistonBlock, PiglinWallSkullBlock, PlayerHeadBlock, PlayerWallHeadBlock, SculkCatalystBlock, SculkSensorBlock, SculkShriekerBlock, ShelfBlock, ShulkerBoxBlock, SignBlock, SkullBlock, SmokerBlock, SpawnerBlock, StandingSignBlock, StructureBlock, TestBlock, TestInstanceBlock, TrappedChestBlock, TrialSpawnerBlock, VaultBlock, WallBannerBlock, WallHangingSignBlock, WallSignBlock, WallSkullBlock, WeatheringCopperChestBlock, WeatheringCopperGolemStatueBlock, WitherSkullBlock, WitherWallSkullBlock
public interface EntityBlock
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends BlockEntity>
@Nullable GameEventListenergetListener(ServerLevel level, T blockEntity) default <T extends BlockEntity>
@Nullable BlockEntityTicker<T> getTicker(Level level, BlockState blockState, BlockEntityType<T> type) @Nullable BlockEntitynewBlockEntity(BlockPos worldPosition, BlockState blockState)
-
Method Details
-
newBlockEntity
-
getTicker
default <T extends BlockEntity> @Nullable BlockEntityTicker<T> getTicker(Level level, BlockState blockState, BlockEntityType<T> type) -
getListener
default <T extends BlockEntity> @Nullable GameEventListener getListener(ServerLevel level, T blockEntity)
-