public class PistonTileEntity extends TileEntity implements ITickableTileEntity
pos, removed, worldINFINITE_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, 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()
getUpdateTag in class 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 in interface ITickableTileEntitypublic void read(CompoundNBT compound)
read in class TileEntitypublic CompoundNBT write(CompoundNBT compound)
write in class TileEntitypublic VoxelShape getCollisionShape(IBlockReader p_195508_1_, BlockPos p_195508_2_)
public long getLastTicked()