public class ClockworkBearingTileEntity extends KineticTileEntity implements IBearingTileEntity, IDisplayAssemblyExceptions
IControlContraption.MovementMode, IControlContraption.RotationModeIHaveGoggleInformation.Format| Modifier and Type | Field and Description |
|---|---|
protected boolean |
assembleNextTick |
protected float |
clientHourAngleDiff |
protected float |
clientMinuteAngleDiff |
protected float |
hourAngle |
protected ControlledContraptionEntity |
hourHand |
protected AssemblyException |
lastException |
protected float |
minuteAngle |
protected ControlledContraptionEntity |
minuteHand |
protected ScrollOptionBehaviour<com.simibubi.create.content.contraptions.components.structureMovement.bearing.ClockworkBearingTileEntity.ClockHands> |
operationMode |
protected boolean |
running |
cachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedcomponentSpacing, numberFormat, spacing| Constructor and Description |
|---|
ClockworkBearingTileEntity(net.minecraft.tileentity.TileEntityType<? extends ClockworkBearingTileEntity> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehaviours(java.util.List<TileEntityBehaviour> behaviours) |
protected void |
applyRotations() |
void |
assemble() |
void |
attach(ControlledContraptionEntity contraption) |
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
|
float |
getAngularSpeed() |
net.minecraft.util.math.BlockPos |
getBlockPosition() |
float |
getHourArmSpeed() |
protected float |
getHourTarget(boolean cycle24) |
float |
getInterpolatedAngle(float partialTicks) |
AssemblyException |
getLastAssemblyException() |
float |
getMinuteArmSpeed() |
protected float |
getMinuteTarget() |
boolean |
isAttachedTo(AbstractContraptionEntity contraption) |
boolean |
isRunning() |
boolean |
isValid() |
boolean |
isWoodenTop() |
void |
lazyTick() |
void |
onSpeedChanged(float prevSpeed) |
void |
onStall() |
void |
setAngle(float forcedAngle) |
void |
setRemoved() |
boolean |
shouldRenderNormally() |
void |
tick() |
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, waitgetMovementModeSlotaddExceptionToTooltipcontainedFluidTooltip, formatgetWorldprotected ControlledContraptionEntity hourHand
protected ControlledContraptionEntity minuteHand
protected float hourAngle
protected float minuteAngle
protected float clientHourAngleDiff
protected float clientMinuteAngleDiff
protected boolean running
protected boolean assembleNextTick
protected AssemblyException lastException
protected ScrollOptionBehaviour<com.simibubi.create.content.contraptions.components.structureMovement.bearing.ClockworkBearingTileEntity.ClockHands> operationMode
public ClockworkBearingTileEntity(net.minecraft.tileentity.TileEntityType<? extends ClockworkBearingTileEntity> type)
public void addBehaviours(java.util.List<TileEntityBehaviour> behaviours)
addBehaviours in class KineticTileEntitypublic boolean isWoodenTop()
isWoodenTop in interface IBearingTileEntitypublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class KineticTileEntitypublic AssemblyException getLastAssemblyException()
getLastAssemblyException in interface IDisplayAssemblyExceptionsprotected void applyRotations()
public void lazyTick()
lazyTick in class SmartTileEntitypublic float getHourArmSpeed()
public float getMinuteArmSpeed()
protected float getHourTarget(boolean cycle24)
protected float getMinuteTarget()
public float getAngularSpeed()
public void assemble()
public void disassemble()
public void attach(ControlledContraptionEntity contraption)
attach in interface IControlContraptionpublic 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 void onSpeedChanged(float prevSpeed)
onSpeedChanged in class KineticTileEntitypublic boolean isValid()
isValid in interface IControlContraptionpublic float getInterpolatedAngle(float partialTicks)
getInterpolatedAngle in interface IBearingTileEntitypublic void onStall()
onStall in interface IControlContraptionpublic void setRemoved()
setRemoved in class KineticTileEntitypublic boolean isAttachedTo(AbstractContraptionEntity contraption)
isAttachedTo in interface IControlContraptionpublic boolean isRunning()
public net.minecraft.util.math.BlockPos getBlockPosition()
getBlockPosition in interface IControlContraptionpublic boolean shouldRenderNormally()
shouldRenderNormally in interface com.jozufozu.flywheel.backend.instancing.IInstanceRenderedpublic void setAngle(float forcedAngle)
setAngle in interface IBearingTileEntity