public abstract class LinearActuatorTileEntity extends KineticTileEntity implements IControlContraption, IDisplayAssemblyExceptions
IControlContraption.MovementMode, IControlContraption.RotationModeIHaveGoggleInformation.Format| Modifier and Type | Field and Description |
|---|---|
boolean |
assembleNextTick |
protected float |
clientOffsetDiff |
protected boolean |
forceMove |
protected AssemblyException |
lastException |
AbstractContraptionEntity |
movedContraption |
protected ScrollOptionBehaviour<IControlContraption.MovementMode> |
movementMode |
float |
offset |
boolean |
running |
protected boolean |
waitingForSpeedChange |
cachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedcomponentSpacing, numberFormat, spacing| Constructor and Description |
|---|
LinearActuatorTileEntity(net.minecraft.tileentity.TileEntityType<?> typeIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehaviours(java.util.List<TileEntityBehaviour> behaviours) |
protected void |
applyContraptionMotion() |
protected void |
applyContraptionPosition() |
protected abstract void |
assemble() |
void |
attach(ControlledContraptionEntity contraption) |
void |
collided() |
abstract 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
|
net.minecraft.util.math.BlockPos |
getBlockPosition() |
protected abstract int |
getExtensionRange() |
protected int |
getGridOffset(float offset) |
protected abstract int |
getInitialOffset() |
float |
getInterpolatedOffset(float partialTicks) |
AssemblyException |
getLastAssemblyException() |
net.minecraft.util.math.vector.Vector3d |
getMotionVector() |
protected abstract ValueBoxTransform |
getMovementModeSlot() |
float |
getMovementSpeed() |
boolean |
isAttachedTo(AbstractContraptionEntity contraption) |
boolean |
isValid() |
void |
lazyTick() |
void |
onLengthBroken() |
void |
onSpeedChanged(float prevSpeed) |
void |
onStall() |
void |
setRemoved() |
void |
tick() |
protected abstract net.minecraft.util.math.vector.Vector3d |
toMotionVector(float speed) |
protected abstract net.minecraft.util.math.vector.Vector3d |
toPosition(float offset) |
protected void |
tryDisassemble() |
protected void |
visitNewPosition() |
protected void |
write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
addPropagationLocations, 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, shouldRenderNormallypublic float offset
public boolean running
public boolean assembleNextTick
public AbstractContraptionEntity movedContraption
protected boolean forceMove
protected ScrollOptionBehaviour<IControlContraption.MovementMode> movementMode
protected boolean waitingForSpeedChange
protected AssemblyException lastException
protected float clientOffsetDiff
public LinearActuatorTileEntity(net.minecraft.tileentity.TileEntityType<?> typeIn)
public void addBehaviours(java.util.List<TileEntityBehaviour> behaviours)
addBehaviours in class KineticTileEntitypublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class KineticTileEntitypublic void lazyTick()
lazyTick in class SmartTileEntityprotected int getGridOffset(float offset)
public float getInterpolatedOffset(float partialTicks)
public void onSpeedChanged(float prevSpeed)
onSpeedChanged in class KineticTileEntitypublic void setRemoved()
setRemoved in class KineticTileEntityprotected void write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntitywrite in class KineticTileEntityprotected void fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntityfromTag in class KineticTileEntitypublic AssemblyException getLastAssemblyException()
getLastAssemblyException in interface IDisplayAssemblyExceptionspublic abstract void disassemble()
protected abstract void assemble()
throws AssemblyException
AssemblyExceptionprotected abstract int getExtensionRange()
protected abstract int getInitialOffset()
protected abstract ValueBoxTransform getMovementModeSlot()
protected abstract net.minecraft.util.math.vector.Vector3d toMotionVector(float speed)
protected abstract net.minecraft.util.math.vector.Vector3d toPosition(float offset)
protected void visitNewPosition()
protected void tryDisassemble()
public void collided()
collided in interface IControlContraptionprotected void applyContraptionMotion()
protected void applyContraptionPosition()
public float getMovementSpeed()
public net.minecraft.util.math.vector.Vector3d getMotionVector()
public void onStall()
onStall in interface IControlContraptionpublic void onLengthBroken()
public boolean isValid()
isValid in interface IControlContraptionpublic void attach(ControlledContraptionEntity contraption)
attach in interface IControlContraptionpublic boolean isAttachedTo(AbstractContraptionEntity contraption)
isAttachedTo in interface IControlContraptionpublic net.minecraft.util.math.BlockPos getBlockPosition()
getBlockPosition in interface IControlContraption