public class PistonTileEntity extends TileEntity implements ITickableTileEntity
pos, removed, worldINFINITE_EXTENT_AABB| コンストラクタと説明 | 
|---|
| PistonTileEntity() | 
| PistonTileEntity(BlockState pistonStateIn,
                Direction pistonFacingIn,
                boolean extendingIn,
                boolean shouldHeadBeRenderedIn) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| void | clearPistonTileEntity()removes a piston's tile entity (and if the piston is moving, stops it) | 
| VoxelShape | getCollisionShape(IBlockReader p_195508_1_,
                 BlockPos p_195508_2_) | 
| Direction | getFacing() | 
| long | getLastTicked() | 
| Direction | getMotionDirection() | 
| float | getOffsetX(float ticks) | 
| float | getOffsetY(float ticks) | 
| float | getOffsetZ(float ticks) | 
| BlockState | getPistonState() | 
| float | getProgress(float ticks)Get interpolated progress value (between lastProgress and progress) given the fractional time between ticks as an
 argument | 
| CompoundNBT | getUpdateTag()Get an NBT compound to sync to the client with SPacketChunkData, used for initial loading of the chunk or when
 many blocks change at once. | 
| boolean | isExtending()Returns true if a piston is extending | 
| void | read(CompoundNBT compound) | 
| boolean | shouldPistonHeadBeRendered() | 
| void | tick() | 
| CompoundNBT | write(CompoundNBT compound) | 
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapability, getCapabilitypublic PistonTileEntity()
public PistonTileEntity(BlockState pistonStateIn, Direction pistonFacingIn, boolean extendingIn, boolean shouldHeadBeRenderedIn)
public CompoundNBT getUpdateTag()
handleUpdateTaggetUpdateTag クラス内 TileEntitypublic boolean isExtending()
public Direction getFacing()
public boolean shouldPistonHeadBeRendered()
public float getProgress(float ticks)
public float getOffsetX(float ticks)
public float getOffsetY(float ticks)
public float getOffsetZ(float ticks)
public Direction getMotionDirection()
public BlockState getPistonState()
public void clearPistonTileEntity()
public void tick()
tick インタフェース内 ITickableTileEntitypublic void read(CompoundNBT compound)
read クラス内 TileEntitypublic CompoundNBT write(CompoundNBT compound)
write クラス内 TileEntitypublic VoxelShape getCollisionShape(IBlockReader p_195508_1_, BlockPos p_195508_2_)
public long getLastTicked()