public class PistonTileEntity extends TileEntity implements ITickableTileEntity
Modifier and Type | Field and Description |
---|---|
private boolean |
extending |
private float |
lastProgress |
private long |
lastTicked |
private static java.lang.ThreadLocal<Direction> |
MOVING_ENTITY |
private Direction |
pistonFacing |
private BlockState |
pistonState |
private float |
progress |
private boolean |
shouldHeadBeRendered |
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() |
private void |
fixEntityWithinPistonBase(Entity p_190605_1_,
Direction p_190605_2_,
double p_190605_3_) |
private static boolean |
func_227021_a_(AxisAlignedBB p_227021_0_,
Entity p_227021_1_) |
private static void |
func_227022_a_(Direction p_227022_0_,
Entity p_227022_1_,
double p_227022_2_,
Direction p_227022_4_) |
private void |
func_227024_g_(float p_227024_1_) |
private boolean |
func_227025_y_() |
private BlockState |
getCollisionRelatedBlockState() |
VoxelShape |
getCollisionShape(IBlockReader p_195508_1_,
BlockPos p_195508_2_) |
private float |
getExtendedProgress(float p_184320_1_) |
Direction |
getFacing() |
long |
getLastTicked() |
private AxisAlignedBB |
getMinMaxPiecesAABB(java.util.List<AxisAlignedBB> p_191515_1_) |
Direction |
getMotionDirection() |
private static double |
getMovement(AxisAlignedBB p_190612_0_,
Direction p_190612_1_,
AxisAlignedBB facing) |
float |
getOffsetX(float ticks) |
float |
getOffsetY(float ticks) |
float |
getOffsetZ(float ticks) |
BlockState |
getPistonState() |
float |
getProgress(float ticks) |
CompoundNBT |
getUpdateTag() |
boolean |
isExtending() |
private AxisAlignedBB |
moveByPositionAndProgress(AxisAlignedBB p_190607_1_) |
private void |
moveCollidedEntities(float p_184322_1_) |
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
private BlockState pistonState
private Direction pistonFacing
private boolean extending
private boolean shouldHeadBeRendered
private static final java.lang.ThreadLocal<Direction> MOVING_ENTITY
private float progress
private float lastProgress
private long lastTicked
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)
private float getExtendedProgress(float p_184320_1_)
private BlockState getCollisionRelatedBlockState()
private void moveCollidedEntities(float p_184322_1_)
private static void func_227022_a_(Direction p_227022_0_, Entity p_227022_1_, double p_227022_2_, Direction p_227022_4_)
private void func_227024_g_(float p_227024_1_)
private static boolean func_227021_a_(AxisAlignedBB p_227021_0_, Entity p_227021_1_)
private boolean func_227025_y_()
public Direction getMotionDirection()
private AxisAlignedBB getMinMaxPiecesAABB(java.util.List<AxisAlignedBB> p_191515_1_)
private static double getMovement(AxisAlignedBB p_190612_0_, Direction p_190612_1_, AxisAlignedBB facing)
private AxisAlignedBB moveByPositionAndProgress(AxisAlignedBB p_190607_1_)
private void fixEntityWithinPistonBase(Entity p_190605_1_, Direction p_190605_2_, double p_190605_3_)
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()