类 BlockEntityPistonArm
java.lang.Object
cn.nukkit.math.Vector3
cn.nukkit.positiontracking.NamedPosition
cn.nukkit.level.Position
cn.nukkit.blockentity.BlockEntity
cn.nukkit.blockentity.BlockEntitySpawnable
cn.nukkit.blockentity.BlockEntityPistonArm
- 所有已实现的接口:
Cloneable
@PowerNukkitDifference(info="The piston will work as close as possible to vanilla")
public class BlockEntityPistonArm
extends BlockEntitySpawnable
- 作者:
- CreeperFace
-
字段概要
字段修饰符和类型字段说明boolean
boolean
float
static final float
byte
boolean
float
byte
boolean
从类继承的字段 cn.nukkit.blockentity.BlockEntity
BANNER, BARREL, BEACON, BED, BEEHIVE, BELL, BLAST_FURNACE, BREWING_STAND, CAMPFIRE, CAULDRON, CHEST, chunk, closed, COMMAND_BLOCK, COMPARATOR, CONDUIT, count, DAYLIGHT_DETECTOR, DISPENSER, DROPPER, ENCHANT_TABLE, END_GATEWAY, END_PORTAL, ENDER_CHEST, FLOWER_POT, FURNACE, HOPPER, id, ITEM_FRAME, JUKEBOX, lastUpdate, LECTERN, LODESTONE, MOB_SPAWNER, movable, MOVING_BLOCK, MUSIC, name, namedTag, NETHER_REACTOR, PISTON_ARM, SCULK_CATALYST, SCULK_SENSOR, SCULK_SHRIEKER, server, SHULKER_BOX, SIGN, SKULL, SMOKER, TARGET, timing
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
boolean
void
move
(boolean extending, List<BlockVector3> attachedBlocks, BlockPistonBase.BlocksCalculator blocksCalculator) boolean
onUpdate()
void
saveNBT()
从类继承的方法 cn.nukkit.blockentity.BlockEntitySpawnable
getSpawnPacket, getSpawnPacket, spawnTo, spawnToAll, updateCompoundTag
从类继承的方法 cn.nukkit.blockentity.BlockEntity
close, createBlockEntity, createBlockEntity, createBlockEntity, getBlock, getCleanedNBT, getDefaultCompound, getId, getLevelBlockEntity, getName, getSaveId, isMovable, isObservable, loadNBT, onBreak, onBreak, registerBlockEntity, scheduleUpdate, setDirty
从类继承的方法 cn.nukkit.level.Position
abs, add, add, add, add, ceil, clone, divide, floor, fromObject, fromObject, getChunk, getLevel, getLevelBlock, getLevelBlock, getLevelBlock, getLevelBlockAround, getLevelBlockAtLayer, getLevelBlockState, getLevelBlockState, getLevelName, getLocation, getSide, getSide, getTickCachedLevelBlock, getTickCachedLevelBlockAtLayer, getTypedBlockEntity, getValidLevel, isValid, multiply, round, setComponents, setComponents, setLevel, setStrong, setWeak, subtract, subtract, subtract, subtract, subtract, toString
从类继承的方法 cn.nukkit.positiontracking.NamedPosition
matchesNamedPosition
从类继承的方法 cn.nukkit.math.Vector3
asBlockVector3, asVector3f, cross, distance, distance, distanceManhattan, distanceSquared, distanceSquared, dot, down, down, east, east, equals, getAxis, getChunkSectionY, getChunkVector, getChunkX, getChunkZ, getFloorX, getFloorY, getFloorZ, getForward, getIntermediateWithXValue, getIntermediateWithYValue, getIntermediateWithZValue, getRight, getSideVec, getSouth, getUp, getWest, getX, getY, getZ, hashCode, length, lengthSquared, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, normalize, north, north, rawHashCode, setComponentsAdding, setComponentsAdding, setX, setY, setZ, south, south, up, up, west, west
-
字段详细资料
-
MOVE_STEP
-
progress
public float progress -
lastProgress
public float lastProgress -
facing
-
powered
public boolean powered -
extending
public boolean extending -
blocksCalculator
-
sticky
public boolean sticky -
state
-
newState
-
attachedBlocks
-
finished
-
-
构造器详细资料
-
BlockEntityPistonArm
-
-
方法详细资料
-
initBlockEntity
protected void initBlockEntity()- 覆盖:
initBlockEntity
在类中BlockEntitySpawnable
-
move
@PowerNukkitOnly public void move(boolean extending, List<BlockVector3> attachedBlocks, BlockPistonBase.BlocksCalculator blocksCalculator) -
onUpdate
@PowerNukkitDifference(info="Add option to see if blockentity is currently handling piston move (var finished)+ update around redstone directly after moved block set", since="1.4.0.0-PN") public boolean onUpdate()- 覆盖:
onUpdate
在类中BlockEntity
-
isBlockEntityValid
public boolean isBlockEntityValid()- 指定者:
isBlockEntityValid
在类中BlockEntity
-
saveNBT
public void saveNBT()- 覆盖:
saveNBT
在类中BlockEntity
-
getSpawnCompound
- 覆盖:
getSpawnCompound
在类中BlockEntitySpawnable
-