public class MechanicalPistonTileEntity extends LinearActuatorTileEntity
IControlContraption.MovementMode, IControlContraption.RotationModeIHaveGoggleInformation.Format| Modifier and Type | Field and Description |
|---|---|
protected int |
extensionLength |
protected boolean |
hadCollisionWithOtherPiston |
assembleNextTick, clientOffsetDiff, forceMove, lastException, movedContraption, movementMode, needsContraption, offset, running, waitingForSpeedChangecachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedcomponentSpacing, numberFormat, spacing| Constructor and Description |
|---|
MechanicalPistonTileEntity(net.minecraft.tileentity.TileEntityType<? extends MechanicalPistonTileEntity> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
assemble() |
protected void |
collided() |
void |
disassemble() |
protected void |
fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
protected int |
getExtensionRange() |
protected int |
getInitialOffset() |
protected ValueBoxTransform |
getMovementModeSlot() |
float |
getMovementSpeed() |
protected net.minecraft.util.math.vector.Vector3d |
toMotionVector(float speed) |
protected net.minecraft.util.math.vector.Vector3d |
toPosition(float offset) |
protected void |
visitNewPosition() |
protected void |
write(net.minecraft.nbt.CompoundNBT tag,
boolean clientPacket)
Hook only these in future subclasses of STE
|
addBehaviours, attach, getBlockPosition, getGridOffset, getInterpolatedOffset, getLastAssemblyException, getMotionVector, isAttachedTo, isValid, lazyTick, moveAndCollideContraption, onLengthBroken, onSpeedChanged, onStall, resetContraptionToOffset, setRemoved, tick, tryDisassembleaddPropagationLocations, addToGoggleTooltip, addToTooltip, attachKinetics, calculateAddedStressCapacity, calculateStressApplied, canPropagateDiagonally, clearKineticInformation, convertToAngular, convertToDirection, convertToLinear, detachKinetics, getFlickerScore, getGeneratedSpeed, getOrCreateNetwork, getRenderBoundingBox, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isCustomConnection, isNoisy, isOverStressed, isSource, isSpeedRequirementFulfilled, makeRenderBoundingBox, needsSpeedUpdate, propagateRotationTo, removeSource, requestModelDataUpdate, setNetwork, setSource, setSpeed, switchToBlockState, tickAudio, updateFromNetwork, warnOfMovementaddBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, isFluidHandlerCap, isItemHandlerCap, isVirtual, load, markVirtual, readClientUpdate, removeBehaviour, save, sendToContainer, setLazyTickRate, writeSafe, writeToClientcauseBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, sendDataclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddExceptionToTooltipcontainedFluidTooltip, formatgetWorld, shouldRenderNormallyprotected boolean hadCollisionWithOtherPiston
protected int extensionLength
public MechanicalPistonTileEntity(net.minecraft.tileentity.TileEntityType<? extends MechanicalPistonTileEntity> type)
protected void fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntityfromTag in class LinearActuatorTileEntityprotected void write(net.minecraft.nbt.CompoundNBT tag,
boolean clientPacket)
SmartTileEntitywrite in class LinearActuatorTileEntitypublic void assemble()
throws AssemblyException
assemble in class LinearActuatorTileEntityAssemblyExceptionpublic void disassemble()
disassemble in class LinearActuatorTileEntityprotected void collided()
collided in class LinearActuatorTileEntitypublic float getMovementSpeed()
getMovementSpeed in class LinearActuatorTileEntityprotected int getExtensionRange()
getExtensionRange in class LinearActuatorTileEntityprotected void visitNewPosition()
visitNewPosition in class LinearActuatorTileEntityprotected net.minecraft.util.math.vector.Vector3d toMotionVector(float speed)
toMotionVector in class LinearActuatorTileEntityprotected net.minecraft.util.math.vector.Vector3d toPosition(float offset)
toPosition in class LinearActuatorTileEntityprotected ValueBoxTransform getMovementModeSlot()
getMovementModeSlot in class LinearActuatorTileEntityprotected int getInitialOffset()
getInitialOffset in class LinearActuatorTileEntity