public class StressGaugeTileEntity extends GaugeTileEntity
IHaveGoggleInformation.Formatcolor, dialState, dialTarget, prevDialStatecachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedcomponentSpacing, numberFormat, spacing| Constructor and Description |
|---|
StressGaugeTileEntity(net.minecraft.tileentity.TileEntityType<? extends StressGaugeTileEntity> type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToGoggleTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
boolean isPlayerSneaking)
this method will be called when looking at a TileEntity that implemented this
interface
|
float |
getNetworkCapacity() |
float |
getNetworkStress() |
void |
onSpeedChanged(float prevSpeed) |
void |
updateFromNetwork(float maxStress,
float currentStress,
int networkSize) |
fromTag, shouldRenderNormally, tick, writeaddBehaviours, addPropagationLocations, 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, setRemoved, setSource, setSpeed, switchToBlockState, tickAudio, warnOfMovementaddBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, readClientUpdate, removeBehaviour, save, 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, waitcontainedFluidTooltip, formatgetWorldpublic StressGaugeTileEntity(net.minecraft.tileentity.TileEntityType<? extends StressGaugeTileEntity> type)
public void updateFromNetwork(float maxStress,
float currentStress,
int networkSize)
updateFromNetwork in class KineticTileEntitypublic void onSpeedChanged(float prevSpeed)
onSpeedChanged in class KineticTileEntitypublic boolean addToGoggleTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
boolean isPlayerSneaking)
IHaveGoggleInformationaddToGoggleTooltip in interface IHaveGoggleInformationaddToGoggleTooltip in class GaugeTileEntitytrue if the tooltip creation was successful and should be displayed,
or false if the overlay should not be displayedpublic float getNetworkStress()
public float getNetworkCapacity()