public class PistonTileEntity extends TileEntity implements ITickableTileEntity
pos, removed, world
INFINITE_EXTENT_AABB
Constructor and Description |
---|
PistonTileEntity() |
PistonTileEntity(BlockState pistonStateIn,
Direction pistonFacingIn,
boolean extendingIn,
boolean shouldHeadBeRenderedIn) |
Modifier and Type | Method and Description |
---|---|
void |
clearPistonTileEntity() |
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) |
CompoundNBT |
getUpdateTag() |
boolean |
isExtending() |
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, setWorld, 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()
getUpdateTag
in class 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
in interface ITickableTileEntity
public void read(CompoundNBT compound)
read
in class TileEntity
public CompoundNBT write(CompoundNBT compound)
write
in class TileEntity
public VoxelShape getCollisionShape(IBlockReader p_195508_1_, BlockPos p_195508_2_)
public long getLastTicked()