- All Known Subinterfaces:
Banner,Barrel,Beacon,Bed,Bell,BlastFurnace,BrewingStand,Campfire,Cauldron,Chest,CommandBlock,Comparator,DaylightDetector,Dispenser,Dropper,EnchantingTable,EnderChest,EndGateway,EndPortal,FlowerPot,Furnace,Hopper,ItemFrame,Jigsaw,Jukebox,Lectern,MobSpawner,MovingBlock,NetherReactor,Noteblock,Piston,ShulkerBox,Sign,Skull,Smoker,StructureBlock
public interface BlockEntity
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getBlock()@Nullable StringgetLevel()com.nukkitx.math.vector.Vector3igetType()booleanbooleanisClosed()booleanbooleanbooleanisValid()voidonBreak()booleanonUpdate()voidvoidsetCustomName(@Nullable String customName) voidsetDirty()voidsetMovable(boolean movable) voidvoid
-
Method Details
-
getType
BlockEntityType<?> getType() -
getPosition
com.nukkitx.math.vector.Vector3i getPosition() -
getLevel
Level getLevel() -
isValid
boolean isValid() -
isClosed
boolean isClosed() -
close
void close() -
isMovable
boolean isMovable() -
setMovable
void setMovable(boolean movable) -
getCustomName
@Nullable String getCustomName() -
setCustomName
-
hasCustomName
boolean hasCustomName() -
isSpawnable
boolean isSpawnable() -
getBlock
Block getBlock() -
getBlockState
BlockState getBlockState() -
spawnToAll
void spawnToAll() -
spawnTo
-
scheduleUpdate
void scheduleUpdate() -
setDirty
void setDirty() -
onUpdate
boolean onUpdate() -
onBreak
void onBreak()
-