Class IsoGenerator
java.lang.Object
zombie.entity.GameEntity
zombie.iso.IsoObject
zombie.iso.objects.IsoGenerator
- All Implemented Interfaces:
Serializable, ECSEntity, ILuaIsoObject, IsoRenderable, Thumpable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class IsoObject
IsoObject.IsoObjectFactory, IsoObject.OutlineShader, IsoObject.VisionResult -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final floatstatic final floatintbooleanstatic final floatfloatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatFields inherited from class IsoObject
alpha, alphaForced, attachedAnimSprite, bmod, container, damage, doNotSync, emitter, fireColor, gmod, keyId, lastRendered, lastRenderedRendered, lowLightingQualityHack, MAX_WALL_SPLATS, name, neverDoneAlpha, noPicking, offsetX, offsetY, outlineOnMouseover, overlaySprite, overlaySpriteColor, partialThumpDmg, ppfBlink, ppfHighlighted, ppfHighlightRenderOnce, renderDepthAdjust, renderSquareOverride, renderSquareOverride2, rerouteCollide, rerouteMask, rmod, satChair, sheetRope, sheetRopeHealth, sprite, spriteName, square, sx, sy, table, THUMP_STRESS_DEFAULT, THUMP_STRESS_FENCES, THUMP_STRESS_THUMPABLE, THUMP_STRESS_TRANSPARENT_FENCES, tintb, tintg, tintr, wallBloodSplatsFields inherited from class GameEntity
DEFAULT_ENTITY_DISPLAY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionIsoGenerator(InventoryItem item, IsoCell cell, IsoGridSquare sq) IsoGenerator(InventoryItem item, IsoCell cell, IsoGridSquare sq, boolean remote) IsoGenerator(IsoCell cell) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidchunkLoaded(IsoChunk chunk) voiddoubleintfloatgetFuel()floatintfloatintfloatbooleanbooleanstatic booleanisPoweringSquare(int generatorX, int generatorY, int generatorZ, int x, int y, int z) voidload(ByteBuffer input, int worldVersion, boolean isDebugSave) voidremove()voidstatic voidReset()voidsave(ByteBuffer output, boolean isDebugSave) voidsetActivated(boolean activated) voidsetCondition(int condition) voidsetConnected(boolean connected) voidsetFuel(float fuel) voidsetInfoFromItem(InventoryItem item) voidvoidsetTotalPowerUsing(float totalPowerUsing) booleanvoidvoidvoidupdate()static voidstatic voidMethods inherited from class IsoObject
addAttachedAnimSprite, addAttachedAnimSpriteByName, addAttachedAnimSpriteInstance, addChild, addFluid, addItemToObjectSurface, addItemToObjectSurface, addItemToObjectSurface, addSecondaryContainer, addSheetRope, afterRotated, AttachAnim, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, canAddSheetRope, canTransferFluidFrom, canTransferFluidTo, checkAmbientSound, checkHaveElectricity, checkLightSourceActive, checkObjectPowered, cleanWallBlood, clearAttachedAnimSprite, clearOnOverlay, Collision, couldBePoweredByGenerator, countAddSheetRope, createContainersFromSpriteProperties, createFluidContainersFromSpriteProperties, customHashCode, Damage, debugPrintout, destroyFence, DirtySlice, doFindExternalWaterSource, DoSpecialTooltip, DoTooltip, dumpContentsInSquare, emptyFluid, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, factoryFromFileInput_OLD, factoryGetClassID, FindExternalWaterSource, FindExternalWaterSource, FindExternalWaterSource, FindWaterSourceOnSquare, flagForHotSave, getAlpha, getAlpha, getAttachedAnimSprite, getAttachedAnimSpriteCount, getCell, getChildSprites, getChunk, getClosestSpriteGridObject, getContainer, getContainerByEitherType, getContainerByIndex, getContainerByType, getContainerClickedOn, getContainerCount, getContainerIndex, getContainers, getCurrentFrameTex, getCustomColor, getDamage, getDir, getDoRender, getECSComponentMap, getEntityNetID, getFacing, getFacingPosition, getFacingPositionAlt, getFactoryVehicle, getFasciaAttachedSquare, getFluidAmount, getFluidCapacity, getFluidUiName, getForwardIsoDirection, getForwardMovementIsoDirection, getGameEntityType, getGeneratorPowerConsumption, getHighlightColor, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getKeyId, getLastRendered, getLastRenderedRendered, getLightSource, getMaskClickedY, getMasterObject, getModData, getMovingObjectIndex, getName, getNew, getNew, getObjectIndex, getObjectRenderEffects, getObjectRenderEffectsToApply, getOffsetX, getOffsetY, getOnOverlay, getOutlineHighlightCol, getOutlineThickness, getOverlaySprite, getOverlaySpriteColor, getPipedFuelAmount, getPosition, getPosition, getPrimaryFluid, getProperties, getProperty, getProperty, getRenderEffectMaster, getRenderEffectObjectByIndex, getRenderEffectObjectCount, getRenderInfo, getRenderSquare, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteGrid, getSpriteGridObjects, getSpriteGridObjects, getSpriteGridObjectsExcludingSelf, getSpriteGridObjectsIncludingSelf, getSpriteModel, getSpriteName, getSquare, getStaticMovingObjectIndex, getStressModFromThumping, getSurfaceNormalOffset, getSurfaceOffset, getSurfaceOffsetNoTable, getTable, getTargetAlpha, getTargetAlpha, getTextureName, getThumpableFor, getThumpableFor, getThumpCondition, getTile, getTileName, getType, getUsesExternalWaterSource, GetVehicleSlowFactor, getWindRenderEffects, getWorldObjectIndex, getX, getY, getZ, handleBurning, hasAdjacentCanStandSquare, hasAnimatedAttachments, hasAttachedAnimSprites, hasExternalWaterSource, hasFluid, hasGridPower, hasModData, hasOverlaySprite, hasPropaneTank, hasProperty, hasProperty, hasProperty, hasSpriteGrid, HasTooltip, hasWater, haveSheetRope, haveSpecialTooltip, Hit, HitByVehicle, invalidateRenderChunkLevel, invalidateVispolyChunkLevel, isAlphaAndTargetZero, isAlphaAndTargetZero, isAlphaZero, isAlphaZero, isAnimating, isAttachedAnimSprite, isAttachedOrOverlaySprite, isBlink, isBlink, isBush, isCanPath, isCharacter, isConnectedSpriteGridObject, isDestroyed, isEntityValid, isExistInTheWorld, isFascia, isFireInteractionObject, isFloor, isFluidInputLocked, isFurnitureOccupied, isGenericCraftingSurface, isGrass, isGrassLike, isGrave, isHighlighted, isHighlighted, isHighlightRenderOnce, isHighlightRenderOnce, isHoppable, isItemAllowedInContainer, isLit, isMaskClicked, isMaskClicked, isMovedThumpable, isNoPicking, isNorthBlocked, isNorthHoppable, isObjectNoContainerOrEmpty, isOnScreen, isOre, isOres, isOutlineHighlight, isOutlineHighlight, isOutlineHlAttached, isOutlineHlAttached, isOutlineHlBlink, isOutlineHlBlink, isOutlineOnMouseover, isPropaneBBQ, isRemoveItemAllowedFromContainer, isSatChair, isSceneCulled, isSpriteInvisible, isStairsNorth, isStairsObject, isStairsWest, isStump, isTableSurface, isTableTopObject, isTaintedWater, isTallHoppable, isTargetAlphaZero, isTent, isUseSnowSprite, isWall, isWallN, isWallSE, isWallW, isWindow, isZombie, load, loadChange, loadFromRemoteBuffer, loadFromRemoteBuffer, loadState, moveFluidToTemporaryContainer, onAnimationFinished, onMouseLeftClick, onMouseRightClick, onMouseRightReleased, propertyEquals, propertyEqualsIgnoreCase, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, removeFromWorldToMeta, removeRenderEffect, removeSheetRope, render, renderAnimatedAttachments, renderAttachedAndOverlaySprites, renderFloorTile, renderFxMask, renderObjectPicker, renderWallTile, renderWallTileDepth, renderWallTileOnly, replaceItem, reset, reuseGridSquare, save, saveChange, saveState, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlpha, setAlphaAndTarget, setAlphaAndTarget, setAlphaToTarget, setAnimating, setAttachedAnimSprite, setBlink, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDir, setDoRender, setExplored, setForwardIsoDirection, setForwardIsoDirection, setHighlightColor, setHighlightColor, setHighlightColor, setHighlightColor, setHighlighted, setHighlighted, setHighlighted, setHighlighted, setHighlightRenderOnce, setHighlightRenderOnce, setKeyId, setLastRendered, setLastRenderedRendered, setLightSource, setLit, setModData, setMovedThumpable, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOnOverlay, setOutlineHighlight, setOutlineHighlight, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHlAttached, setOutlineHlAttached, setOutlineHlBlink, setOutlineHlBlink, setOutlineOnMouseover, setOutlineThickness, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setPipedFuelAmount, setRenderEffect, setRenderEffect, setRenderYOffset, setRerouteCollide, setRerouteMask, setSatChair, setSceneCulled, setSpecialTooltip, setSprite, setSprite, setSpriteFromName, setSpriteModelName, setSquare, setTable, setTargetAlpha, setTargetAlpha, setTile, setType, setUsesExternalWaterSource, softReset, spawnItemToObjectSurface, spawnItemToObjectSurface, spawnItemToObjectSurface, sync, sync, syncFluidContainerReceive, syncFluidContainerSend, syncIsoObject, TestCollide, TestPathfindCollide, TestVision, Thump, toString, transferFluidFrom, transferFluidTo, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColorToClients, transmitModData, transmitUpdatedSprite, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, turnOn, UnCollision, unsetOutlineHighlight, useFluid, useItemOn, WeaponHit, writeToRemoteBufferMethods inherited from class GameEntity
attrib, componentSize, containsComponent, getAttributes, getComponent, getComponentAny, getComponentForIndex, getComponentFromID, getDefaultEntityDisplayName, getDurabilityComponent, getEntityDisplayName, getEntityFullTypeDebug, getEntityScript, getExceptionCompatibleString, getFluidContainer, getSpriteConfig, getUsingPlayer, getXi, getYi, getZi, hasComponent, hasComponentAny, hasComponents, hasRenderers, isAddedToEngine, isMeta, isOutside, isRemovingFromEngine, isScheduledForBucketUpdate, isScheduledForEngineRemoval, isUsingPlayer, isValidEngineEntity, loadEntity, loadEntity, onEquip, onEquip, onFluidContainerUpdate, onUnEquip, removeFromWorld, renderlast, renderlastComponents, requiresEntitySave, saveEntity, sendRequestSyncGameEntity, sendSyncEntity, setUsingPlayerMethods inherited from interface ECSEntity
frameStep, getECSComponent, getFrameNo, hasECSComponent, hasECSComponent, onGameLoadingStateEnter, onInGameStateEnter, registerECSComponents, removeECSComponent, removeECSComponent, setECSComponent, tryGetECSComponent, visitAllComponents, visitAllComponentsMethods inherited from interface ILuaIsoObject
setDir
-
Field Details
-
ClothingAppliancePowerConsumption
public static final float ClothingAppliancePowerConsumption- See Also:
-
TelevisionPowerConsumption
public static final float TelevisionPowerConsumption- See Also:
-
RadioPowerConsumption
public static final float RadioPowerConsumption- See Also:
-
StovePowerConsumption
public static final float StovePowerConsumption- See Also:
-
FridgeFreezerPowerConsumption
public static final float FridgeFreezerPowerConsumption- See Also:
-
SingleFridgeOrFreezerPowerConsumption
public static final float SingleFridgeOrFreezerPowerConsumption- See Also:
-
LightSwitchPowerConsumption
public static final float LightSwitchPowerConsumption- See Also:
-
PipedFuelPowerConsumption
public static final float PipedFuelPowerConsumption- See Also:
-
BatteryChargerPowerConsumption
public static final float BatteryChargerPowerConsumption- See Also:
-
StackedWasherDryerPowerConsumption
public static final float StackedWasherDryerPowerConsumption- See Also:
-
fuel
public float fuel -
activated
public boolean activated -
condition
public int condition -
connected
public boolean connected
-
-
Constructor Details
-
IsoGenerator
-
IsoGenerator
-
IsoGenerator
-
-
Method Details
-
getMinAffectedLevel
public int getMinAffectedLevel() -
getMaxAffectedLevel
public int getMaxAffectedLevel() -
setInfoFromItem
-
update
-
setSurroundingElectricity
public void setSurroundingElectricity() -
load
- Overrides:
loadin classIsoObject- Throws:
IOException
-
save
- Overrides:
savein classIsoObject- Throws:
IOException
-
remove
public void remove() -
addToWorld
public void addToWorld()- Overrides:
addToWorldin classIsoObject
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorldin classIsoObject
-
getObjectName
- Overrides:
getObjectNamein classIsoObject
-
shouldShowOnOverlay
public boolean shouldShowOnOverlay()- Overrides:
shouldShowOnOverlayin classIsoObject
-
getBasePowerConsumption
public double getBasePowerConsumption() -
getBasePowerConsumptionString
-
getFuel
public float getFuel() -
getFuelPercentage
public float getFuelPercentage() -
getMaxFuel
public float getMaxFuel() -
setFuel
public void setFuel(float fuel) -
isActivated
public boolean isActivated() -
setActivated
public void setActivated(boolean activated) -
failToStart
public void failToStart() -
getCondition
public int getCondition() -
setCondition
public void setCondition(int condition) -
isConnected
public boolean isConnected() -
setConnected
public void setConnected(boolean connected) -
syncIsoObjectSend
- Overrides:
syncIsoObjectSendin classIsoObject
-
syncIsoObjectReceive
- Overrides:
syncIsoObjectReceivein classIsoObject
-
chunkLoaded
-
updateSurroundingNow
public static void updateSurroundingNow() -
updateGenerator
-
Reset
public static void Reset() -
isPoweringSquare
public static boolean isPoweringSquare(int generatorX, int generatorY, int generatorZ, int x, int y, int z) -
getItemsPowered
-
getTotalPowerUsing
public float getTotalPowerUsing() -
getTotalPowerUsingString
-
setTotalPowerUsing
public void setTotalPowerUsing(float totalPowerUsing) -
getSoundPrefix
-