public class MechanicalBearingTileEntity extends GeneratingKineticTileEntity implements IBearingTileEntity, IDisplayAssemblyExceptions
IControlContraption.MovementMode, IControlContraption.RotationModeIHaveGoggleInformation.Format| Modifier and Type | Field and Description |
|---|---|
protected float |
angle |
protected boolean |
assembleNextTick |
protected float |
clientAngleDiff |
protected AssemblyException |
lastException |
protected ControlledContraptionEntity |
movedContraption |
protected ScrollOptionBehaviour<IControlContraption.RotationMode> |
movementMode |
protected boolean |
running |
reActivateSourcecachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedcomponentSpacing, numberFormat, spacing| Constructor and Description |
|---|
MechanicalBearingTileEntity(net.minecraft.tileentity.TileEntityType<? extends MechanicalBearingTileEntity> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehaviours(java.util.List<TileEntityBehaviour> behaviours) |
boolean |
addToTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
boolean isPlayerSneaking) |
protected void |
applyRotation() |
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 |
getInterpolatedAngle(float partialTicks) |
AssemblyException |
getLastAssemblyException() |
boolean |
isAttachedTo(AbstractContraptionEntity contraption) |
boolean |
isNearInitialAngle() |
boolean |
isRunning() |
boolean |
isValid() |
protected boolean |
isWindmill() |
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
|
addToGoggleTooltip, applyNewSpeed, createNetworkId, notifyStressCapacityChange, removeSource, setSource, updateGeneratedRotationaddPropagationLocations, 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, requestModelDataUpdate, setNetwork, 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 ScrollOptionBehaviour<IControlContraption.RotationMode> movementMode
protected ControlledContraptionEntity movedContraption
protected float angle
protected boolean running
protected boolean assembleNextTick
protected float clientAngleDiff
protected AssemblyException lastException
public MechanicalBearingTileEntity(net.minecraft.tileentity.TileEntityType<? extends MechanicalBearingTileEntity> type)
public boolean isWoodenTop()
isWoodenTop in interface IBearingTileEntitypublic void addBehaviours(java.util.List<TileEntityBehaviour> behaviours)
addBehaviours in class KineticTileEntitypublic void setRemoved()
setRemoved in class KineticTileEntitypublic 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 float getInterpolatedAngle(float partialTicks)
getInterpolatedAngle in interface IBearingTileEntitypublic void onSpeedChanged(float prevSpeed)
onSpeedChanged in class KineticTileEntitypublic float getAngularSpeed()
public AssemblyException getLastAssemblyException()
getLastAssemblyException in interface IDisplayAssemblyExceptionsprotected boolean isWindmill()
public net.minecraft.util.math.BlockPos getBlockPosition()
getBlockPosition in interface IControlContraptionpublic void assemble()
public void disassemble()
public void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class GeneratingKineticTileEntitypublic boolean isNearInitialAngle()
public void lazyTick()
lazyTick in class SmartTileEntityprotected void applyRotation()
public void attach(ControlledContraptionEntity contraption)
attach in interface IControlContraptionpublic void onStall()
onStall in interface IControlContraptionpublic boolean isValid()
isValid in interface IControlContraptionpublic boolean isAttachedTo(AbstractContraptionEntity contraption)
isAttachedTo in interface IControlContraptionpublic boolean isRunning()
public boolean addToTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
boolean isPlayerSneaking)
addToTooltip in interface IHaveHoveringInformationaddToTooltip in class KineticTileEntitypublic boolean shouldRenderNormally()
shouldRenderNormally in interface com.jozufozu.flywheel.backend.instancing.IInstanceRenderedpublic void setAngle(float forcedAngle)
setAngle in interface IBearingTileEntity