Package mindustry.world.blocks.power
Class PowerGenerator
java.lang.Object
mindustry.ctype.Content
mindustry.ctype.MappableContent
mindustry.ctype.UnlockableContent
mindustry.world.Block
mindustry.world.blocks.power.PowerBlock
mindustry.world.blocks.power.PowerDistributor
mindustry.world.blocks.power.PowerGenerator
- All Implemented Interfaces:
Comparable<Content>,Senseable
- Direct Known Subclasses:
ConsumeGenerator,ImpactReactor,NuclearReactor,SolarGenerator,ThermalGenerator,VariableReactor
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionarc.audio.SoundbooleanintintExtra number of fireballs spawned from explosions.floatChance for each tile in the explosion radius to catch on fire.floatfloatfloatintintbooleanIf true, the ignition chance decreases with distance.intSize of scorch effect on the ground after explosion.floatfloatfloatThe speed at which ignition spreads.floatThe amount of power produced per tick in case of an efficiency of 1.0, which represents 100%.Fields inherited from class mindustry.world.Block
absorbLasers, acceptsItems, acceptsPayload, acceptsUnitPayloads, albedo, allowConfigInventory, allowDerelictRepair, allowDiagonal, allowedInPayloads, allowRectanglePlacement, allowResupply, alwaysAllowDeposit, alwaysReplace, alwaysUpdateInUnits, ambientSound, ambientSoundVolume, armor, attacks, attributes, autoResetEnabled, barMap, baseExplosiveness, baseShake, breakable, breakEffect, breakPitchChange, breakSound, buildCostMultiplier, buildingCacheLayer, buildTime, buildType, buildVisibility, cacheLayer, canOverdrive, canPickup, category, clearOnDoubleTap, clipSize, commandable, conductivePower, configurable, configurations, configureSound, connectedPower, consPower, consumeBuilder, consumers, consumesPower, consumesTap, conveyorPlacement, copyConfig, createRubble, crushDamageMultiplier, crushFragile, customShadow, customShadowRegion, deconstructDropAllLiquid, deconstructThreshold, delayLandingConfig, depositCooldown, destroyBullet, destroyBulletSameTeam, destroyEffect, destroyPitchMax, destroyPitchMin, destroySound, destroySoundVolume, destructible, diagonalConfigInventory, displayFlow, drawArrow, drawCached, drawCracks, drawDisabled, drawDynamic, drawLiquidLight, drawTeamOverlay, dumpTime, editorConfigurable, emitLight, enableDrawStatus, envDisabled, envEnabled, envRequired, explosivenessScale, fillsTile, flags, flammabilityScale, floating, fogRadius, forceDark, forceTeam, generatedIcons, group, hasColor, hasConsumers, hasItems, hasLiquids, hasPower, hasShadow, health, ignoreBuildDarkness, ignoreLineRotation, ignoreResizeConfig, inEditor, instantBuild, instantDeconstruct, instantTransfer, insulated, invertFlip, isDuct, itemCapacity, itemDrop, itemFilter, lastConfig, lightClipSize, lightColor, lightLiquid, lightRadius, liquidCapacity, liquidFilter, liquidPressure, lockRotation, logicConfigurable, mapColor, maxConsecutive, nonOptionalConsumers, noSideBlend, noUpdateDisabled, obstructsLight, offset, optionalConsumers, outlineColor, outlinedIcon, outlineIcon, outlineRadius, outputFacing, outputsLiquid, outputsPayload, outputsPower, placeableLiquid, placeableOn, placeablePlayer, placeEffect, placeOverlapRange, placePitchChange, placeSound, playerUnmineable, priority, privileged, quickRotate, rebuildable, region, regionRotated1, regionRotated2, replaceable, requirements, requiresWater, researchCost, researchCostMultiplier, researchCostMultipliers, rotate, rotateDraw, rotateDrawEditor, saveConfig, saveData, scaledHealth, schematicPriority, selectionColumns, selectionRows, selectScroll, separateItemCapacity, size, sizeOffset, solid, solidifes, squareSprite, subclass, suppressable, swapDiagonalPlacement, sync, targetable, teamPassable, teamRegion, teamRegions, tempBuilds, tempTiles, timerDump, timers, underBullets, unitCapModifier, unitMoveBreakable, unloadable, update, updateConsumers, updateInUnits, useColor, variantRegions, variants, variantShadowRegions, visualRotationOffsetFields inherited from class mindustry.ctype.UnlockableContent
allDatabaseTabs, alwaysUnlocked, credit, databaseCategory, databaseTabs, databaseTag, description, details, fullIcon, fullOverride, generateIcons, hideDatabase, hideDetails, inlineDescription, localizedName, selectionSize, shownPlanets, stats, techNode, techNodes, uiIcon, unlockedFields inherited from class mindustry.ctype.MappableContent
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawPlanRegion(BuildPlan plan, arc.util.Eachable<BuildPlan> list) floatarc.graphics.g2d.TextureRegion[]icons()voidload()Called after all content is created, only on non-headless versions.booleanvoidsetBars()voidsetStats()Initializes stats on demand.Methods inherited from class mindustry.world.Block
addBar, addLiquidBar, addLiquidBar, afterPatch, asFloor, beforePlaceBegan, blockChanged, bounds, buildEditorConfig, canBeBuilt, canBreak, canPlaceOn, canReplace, changePlacementPath, changePlacementPath, checkContentArrayCapacity, checkForceDark, config, configClear, configSenseable, consume, consumeCoolant, consumeCoolant, consumeItem, consumeItem, consumeItems, consumeLiquid, consumeLiquids, consumePower, consumePowerBuffered, consumePowerCond, consumePowerDynamic, consumePowerDynamic, consumesItem, consumesLiquid, createIcons, displayShadow, drawBase, drawBaseCached, drawDefaultPlanRegion, drawEnvironmentLight, drawOtherPlayerPlan, drawOverlay, drawPlace, drawPlaceText, drawPlaceText, drawPlan, drawPlan, drawPlanConfig, drawPlanConfigCenter, drawPlanConfigCenter, drawPlanConfigTop, drawPotentialLinks, drawShadow, drawSideRegion, editorPicked, environmentBuildable, findConsumer, findPlan, findPlan, flipRotation, getColor, getConfig, getContentType, getDependencies, getDisplayIcon, getDisplayName, getEdges, getGeneratedIcons, getInsideEdges, getPlanConfigs, getPlanRegion, getRegionsToOutline, getReplacement, handlePlacementLine, hasBuilding, hasConsumer, init, initBuilding, isAccessible, isAir, isBanned, isDarkened, isFloor, isHidden, isMultiblock, isOverlay, isOverPlacementLimit, isPlaceable, isStatic, isVisible, iterateTaken, listBars, logicVisible, makeIconRegions, minimapColor, nearbySide, newBuilding, nextConfig, onNewPlan, onPicked, percentSolid, placeBegan, placeBegan, placeEnded, planConfigClipSize, planRotation, pointConfig, postInit, reinitializeConsumers, removeBar, removeConsumer, removeConsumers, requirements, requirements, requirements, researchRequirements, resetGeneratedIcons, rotatedOutput, rotatedOutput, sense, sense, senseObject, setupRequirements, setupRequirements, sumAttribute, supportsEnv, synthetic, updateClipRadius, variantRegionsMethods inherited from class mindustry.ctype.UnlockableContent
checkStats, clearUnlock, computeStats, displayDescription, displayExtra, emoji, emojiChar, getLogicId, hasEmoji, isOnPlanet, loadIcon, locked, makeOutline, makeOutline, makeOutline, makeOutline, onUnlock, quietUnlock, showUnlock, unlock, unlocked, unlockedHost, unlockedNow, unlockedNowHostMethods inherited from class mindustry.ctype.MappableContent
toStringMethods inherited from class mindustry.ctype.Content
compareTo, hasErrored, isModded, isPatchContent, isVanilla, removeContent
-
Field Details
-
powerProduction
public float powerProductionThe amount of power produced per tick in case of an efficiency of 1.0, which represents 100%. -
generationType
-
drawer
-
explosionRadius
public int explosionRadius -
explosionDamage
public int explosionDamage -
explodeEffect
-
explodeSound
public arc.audio.Sound explodeSound -
explosionPuddles
public int explosionPuddles -
explosionPuddleRange
public float explosionPuddleRange -
explosionPuddleAmount
public float explosionPuddleAmount -
explosionPuddleLiquid
-
explosionMinWarmup
public float explosionMinWarmup -
explosionShake
public float explosionShake -
explosionShakeDuration
public float explosionShakeDuration -
explosionBreaksProps
public boolean explosionBreaksProps -
explosionScorchSize
public int explosionScorchSizeSize of scorch effect on the ground after explosion. Value from 1-9. < 1 to disable. -
explosionIgnitionChance
public float explosionIgnitionChanceChance for each tile in the explosion radius to catch on fire. -
explosionScaleIgnitionChance
public boolean explosionScaleIgnitionChanceIf true, the ignition chance decreases with distance. -
explosionSpeed
public float explosionSpeedThe speed at which ignition spreads. -
explosionFireballs
public int explosionFireballsExtra number of fireballs spawned from explosions.
-
-
Constructor Details
-
PowerGenerator
-
-
Method Details
-
getDisplayedPowerProduction
public float getDisplayedPowerProduction() -
icons
public arc.graphics.g2d.TextureRegion[] icons() -
load
public void load()Description copied from class:ContentCalled after all content is created, only on non-headless versions. Use for loading regions or other image data. -
setStats
public void setStats()Description copied from class:UnlockableContentInitializes stats on demand. Called every time the block stats are shown. -
setBars
public void setBars() -
drawPlanRegion
- Overrides:
drawPlanRegionin classBlock
-
outputsItems
public boolean outputsItems()- Overrides:
outputsItemsin classBlock
-