public class PistonTileEntity extends TileEntity implements ITickableTileEntity
pos, removed, world
INFINITE_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, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability, getCapability
public PistonTileEntity()
public PistonTileEntity(BlockState pistonStateIn, Direction pistonFacingIn, boolean extendingIn, boolean shouldHeadBeRenderedIn)
public CompoundNBT getUpdateTag()
handleUpdateTag
getUpdateTag
クラス内 TileEntity
public 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
インタフェース内 ITickableTileEntity
public void read(CompoundNBT compound)
read
クラス内 TileEntity
public CompoundNBT write(CompoundNBT compound)
write
クラス内 TileEntity
public VoxelShape getCollisionShape(IBlockReader p_195508_1_, BlockPos p_195508_2_)
public long getLastTicked()