Class ClockworkBearingTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.tileEntity.SyncedTileEntity
com.simibubi.create.foundation.tileEntity.SmartTileEntity
com.simibubi.create.content.contraptions.base.KineticTileEntity
com.simibubi.create.content.contraptions.components.structureMovement.bearing.ClockworkBearingTileEntity
- All Implemented Interfaces:
com.jozufozu.flywheel.backend.instancing.IInstanceRendered,IBearingTileEntity,IControlContraption,IDisplayAssemblyExceptions,IHaveGoggleInformation,IHaveHoveringInformation,IInteractionChecker,IPartialSafeNBT,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class ClockworkBearingTileEntity
extends KineticTileEntity
implements IBearingTileEntity, IDisplayAssemblyExceptions
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>Nested classes/interfaces inherited from interface com.simibubi.create.content.contraptions.components.structureMovement.IControlContraption
IControlContraption.MovementMode, IControlContraption.RotationModeNested classes/interfaces inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
IHaveGoggleInformation.Format -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected floatprotected floatprotected floatprotected ControlledContraptionEntityprotected AssemblyExceptionprotected floatprotected ControlledContraptionEntityprotected ScrollOptionBehaviour<com.simibubi.create.content.contraptions.components.structureMovement.bearing.ClockworkBearingTileEntity.ClockHands>protected booleanFields inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
cachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABBFields inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
componentSpacing, numberFormat, spacing -
Constructor Summary
ConstructorsConstructorDescriptionClockworkBearingTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBehaviours(List<TileEntityBehaviour> behaviours) protected voidvoidassemble()voidattach(ControlledContraptionEntity contraption) voidprotected voidfromTag(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEfloatnet.minecraft.core.BlockPosfloatprotected floatgetHourTarget(boolean cycle24) floatgetInterpolatedAngle(float partialTicks) floatprotected floatbooleanisAttachedTo(AbstractContraptionEntity contraption) booleanbooleanisValid()booleanvoidlazyTick()voidonSpeedChanged(float prevSpeed) voidonStall()voidsetAngle(float forcedAngle) voidbooleanvoidtick()voidwrite(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEMethods inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
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, warnOfMovementMethods inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
addBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, isFluidHandlerCap, isItemHandlerCap, isVirtual, load, markVirtual, readClientUpdate, refreshBlockState, removeBehaviour, saveAdditional, sendToContainer, setLazyTickRate, writeSafe, writeToClientMethods inherited from class com.simibubi.create.foundation.tileEntity.SyncedTileEntity
causeBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, notifyUpdate, onDataPacket, packetTarget, save, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.simibubi.create.content.contraptions.components.structureMovement.bearing.IBearingTileEntity
getMovementModeSlotMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface com.simibubi.create.content.contraptions.components.structureMovement.IDisplayAssemblyExceptions
addExceptionToTooltipMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, handleUpdateTag, onLoad, serializeNBTMethods inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
containedFluidTooltipMethods inherited from interface com.jozufozu.flywheel.backend.instancing.IInstanceRendered
getWorld
-
Field Details
-
hourHand
-
minuteHand
-
hourAngle
protected float hourAngle -
minuteAngle
protected float minuteAngle -
clientHourAngleDiff
protected float clientHourAngleDiff -
clientMinuteAngleDiff
protected float clientMinuteAngleDiff -
running
protected boolean running -
assembleNextTick
protected boolean assembleNextTick -
lastException
-
operationMode
protected ScrollOptionBehaviour<com.simibubi.create.content.contraptions.components.structureMovement.bearing.ClockworkBearingTileEntity.ClockHands> operationMode
-
-
Constructor Details
-
ClockworkBearingTileEntity
public ClockworkBearingTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
addBehaviours
- Overrides:
addBehavioursin classKineticTileEntity
-
isWoodenTop
public boolean isWoodenTop()- Specified by:
isWoodenTopin interfaceIBearingTileEntity
-
tick
public void tick()- Overrides:
tickin classKineticTileEntity
-
getLastAssemblyException
- Specified by:
getLastAssemblyExceptionin interfaceIDisplayAssemblyExceptions
-
applyRotations
protected void applyRotations() -
lazyTick
public void lazyTick()- Overrides:
lazyTickin classSmartTileEntity
-
getHourArmSpeed
public float getHourArmSpeed() -
getMinuteArmSpeed
public float getMinuteArmSpeed() -
getHourTarget
protected float getHourTarget(boolean cycle24) -
getMinuteTarget
protected float getMinuteTarget() -
getAngularSpeed
public float getAngularSpeed() -
assemble
public void assemble() -
disassemble
public void disassemble() -
attach
- Specified by:
attachin interfaceIControlContraption
-
write
public void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
writein classKineticTileEntity
-
fromTag
protected void fromTag(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
fromTagin classKineticTileEntity
-
onSpeedChanged
public void onSpeedChanged(float prevSpeed) - Overrides:
onSpeedChangedin classKineticTileEntity
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceIControlContraption
-
getInterpolatedAngle
public float getInterpolatedAngle(float partialTicks) - Specified by:
getInterpolatedAnglein interfaceIBearingTileEntity
-
onStall
public void onStall()- Specified by:
onStallin interfaceIControlContraption
-
setRemoved
public void setRemoved()- Overrides:
setRemovedin classKineticTileEntity
-
isAttachedTo
- Specified by:
isAttachedToin interfaceIControlContraption
-
isRunning
public boolean isRunning() -
getBlockPosition
public net.minecraft.core.BlockPos getBlockPosition()- Specified by:
getBlockPositionin interfaceIControlContraption
-
shouldRenderNormally
public boolean shouldRenderNormally()- Specified by:
shouldRenderNormallyin interfacecom.jozufozu.flywheel.backend.instancing.IInstanceRendered
-
setAngle
public void setAngle(float forcedAngle) - Specified by:
setAnglein interfaceIBearingTileEntity
-