public class MovingBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.MovingBlock
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
MovingBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position) |
| Modifier and Type | Method and Description |
|---|---|
org.cloudburstmc.api.blockentity.BlockEntity |
getBlockEntity() |
org.cloudburstmc.api.block.BlockState |
getExtraBlock() |
org.cloudburstmc.api.block.BlockState |
getMovingBlock() |
com.nukkitx.math.vector.Vector3i |
getPiston() |
boolean |
isSpawnable() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setBlock(org.cloudburstmc.api.block.BlockState blockState) |
void |
setBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity) |
void |
setExtraBlock(org.cloudburstmc.api.block.BlockState extraBlockState) |
void |
setPiston(com.nukkitx.math.vector.Vector3i piston) |
close, getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, onBreak, onUpdate, saveClientData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMappublic MovingBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class BaseBlockEntitypublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class BaseBlockEntitypublic org.cloudburstmc.api.block.BlockState getMovingBlock()
public void setBlock(org.cloudburstmc.api.block.BlockState blockState)
public org.cloudburstmc.api.block.BlockState getExtraBlock()
public void setExtraBlock(org.cloudburstmc.api.block.BlockState extraBlockState)
public org.cloudburstmc.api.blockentity.BlockEntity getBlockEntity()
public void setBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity)
public com.nukkitx.math.vector.Vector3i getPiston()
public void setPiston(com.nukkitx.math.vector.Vector3i piston)
public boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic boolean isSpawnable()
isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntityisSpawnable in class BaseBlockEntityCopyright © 2021. All rights reserved.