public class PistonBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Piston
| Modifier and Type | Field and Description |
|---|---|
boolean |
extending |
org.cloudburstmc.api.util.Direction |
facing |
boolean |
powered |
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
PistonBlockEntity(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 |
|---|---|
float |
getLastProgress() |
float |
getProgress() |
boolean |
isPowered() |
boolean |
isSticky() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setPowered(boolean powered) |
void |
setSticky(boolean sticky) |
close, getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, isSpawnable, onBreak, onUpdate, saveClientData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMappublic org.cloudburstmc.api.util.Direction facing
public boolean extending
public boolean powered
public PistonBlockEntity(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 boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic float getProgress()
public float getLastProgress()
public boolean isSticky()
isSticky in interface org.cloudburstmc.api.blockentity.Pistonpublic void setSticky(boolean sticky)
setSticky in interface org.cloudburstmc.api.blockentity.Pistonpublic boolean isPowered()
isPowered in interface org.cloudburstmc.api.blockentity.Pistonpublic void setPowered(boolean powered)
setPowered in interface org.cloudburstmc.api.blockentity.PistonCopyright © 2021. All rights reserved.