Package mindustry.world.blocks.power
Class ConsumeGenerator
- All Implemented Interfaces:
- Comparable<Content>,- Senseable
- Direct Known Subclasses:
- HeaterGenerator
A generator that just takes in certain items or liquids.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class mindustry.world.blocks.power.PowerGeneratorPowerGenerator.GeneratorBuildNested classes/interfaces inherited from class mindustry.ctype.ContentContent.ModContentInfo
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfloatfloatbooleanIf true, this block explodes when outputLiquid exceeds capacity.floatfloatThe time in number of ticks during which a single item will produce power.arc.struct.ObjectFloatMap<Item>Multiplies the itemDuration for a given item.floatFields inherited from class mindustry.world.blocks.power.PowerGeneratordrawer, explodeEffect, explodeSound, explosionDamage, explosionMinWarmup, explosionPuddleAmount, explosionPuddleLiquid, explosionPuddleRange, explosionPuddles, explosionRadius, explosionShake, explosionShakeDuration, generationType, powerProductionFields inherited from class mindustry.world.BlockabsorbLasers, acceptsItems, acceptsPayload, acceptsUnitPayloads, albedo, allowConfigInventory, allowDerelictRepair, allowDiagonal, allowRectanglePlacement, allowResupply, alwaysAllowDeposit, alwaysReplace, alwaysUpdateInUnits, ambientSound, ambientSoundVolume, armor, attacks, attributes, autoResetEnabled, barMap, baseExplosiveness, baseShake, breakable, breakEffect, breakPitchChange, breakSound, buildCostMultiplier, buildTime, buildType, buildVisibility, cacheLayer, canOverdrive, canPickup, category, clearOnDoubleTap, clipSize, commandable, conductivePower, configurable, configurations, connectedPower, consPower, consumeBuilder, consumers, consumesPower, consumesTap, conveyorPlacement, copyConfig, createRubble, crushDamageMultiplier, customShadow, customShadowRegion, deconstructDropAllLiquid, deconstructThreshold, destroyBullet, destroyBulletSameTeam, destroyEffect, destroyPitchMax, destroyPitchMin, destroySound, destructible, displayFlow, drawArrow, drawCracks, drawDisabled, 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, nonOptionalConsumers, noSideBlend, noUpdateDisabled, 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.UnlockableContentallDatabaseTabs, alwaysUnlocked, databaseTabs, description, details, fullIcon, fullOverride, generateIcons, hideDatabase, hideDetails, inlineDescription, localizedName, selectionSize, shownPlanets, stats, techNode, techNodes, uiIcon, unlockedFields inherited from class mindustry.ctype.MappableContentname
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class mindustry.world.blocks.power.PowerGeneratordrawPlanRegion, getDisplayedPowerProduction, icons, load, outputsItemsMethods inherited from class mindustry.world.BlockaddBar, addLiquidBar, addLiquidBar, asFloor, beforePlaceBegan, blockChanged, bounds, buildEditorConfig, canBeBuilt, canBreak, canPlaceOn, canReplace, changePlacementPath, changePlacementPath, checkForceDark, config, configClear, configSenseable, consume, consumeCoolant, consumeCoolant, consumeItem, consumeItem, consumeItems, consumeLiquid, consumeLiquids, consumePower, consumePowerBuffered, consumePowerCond, consumePowerDynamic, consumePowerDynamic, consumesItem, consumesLiquid, createIcons, displayShadow, drawBase, drawDefaultPlanRegion, drawEnvironmentLight, drawOverlay, drawPlace, drawPlaceText, drawPlan, drawPlan, drawPlanConfig, drawPlanConfigCenter, drawPlanConfigCenter, drawPlanConfigTop, drawPotentialLinks, drawShadow, drawSideRegion, editorPicked, environmentBuildable, findConsumer, flipRotation, getConfig, getContentType, getDependencies, getDisplayIcon, getDisplayName, getEdges, getGeneratedIcons, getInsideEdges, getPlanConfigs, getPlanRegion, getRegionsToOutline, getReplacement, handlePlacementLine, hasBuilding, hasConsumer, initBuilding, isAccessible, isAir, isBanned, isDarkened, isFloor, isHidden, isMultiblock, isOverlay, isPlaceable, isStatic, isVisible, iterateTaken, listBars, logicVisible, makeIconRegions, minimapColor, nearbySide, newBuilding, nextConfig, onNewPlan, onPicked, percentSolid, placeBegan, placeBegan, placeEnded, 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.UnlockableContentcheckStats, clearUnlock, displayDescription, displayExtra, emoji, emojiChar, getLogicId, hasEmoji, isOnPlanet, loadIcon, locked, makeOutline, makeOutline, makeOutline, onUnlock, quietUnlock, showUnlock, unlock, unlocked, unlockedHost, unlockedNow, unlockedNowHostMethods inherited from class mindustry.ctype.MappableContenttoStringMethods inherited from class mindustry.ctype.ContentcompareTo, hasErrored, isModded, isVanilla
- 
Field Details- 
itemDurationpublic float itemDurationThe time in number of ticks during which a single item will produce power.
- 
warmupSpeedpublic float warmupSpeed
- 
effectChancepublic float effectChance
- 
generateEffect
- 
consumeEffect
- 
generateEffectRangepublic float generateEffectRange
- 
baseLightRadiuspublic float baseLightRadius
- 
outputLiquid
- 
explodeOnFullpublic boolean explodeOnFullIf true, this block explodes when outputLiquid exceeds capacity.
- 
filterItem
- 
filterLiquid
- 
itemDurationMultipliersMultiplies the itemDuration for a given item.
 
- 
- 
Constructor Details- 
ConsumeGenerator
 
- 
- 
Method Details- 
setBarspublic void setBars()- Overrides:
- setBarsin class- PowerGenerator
 
- 
initpublic void init()Description copied from class:BlockCalled after all blocks are created.
- 
afterPatchpublic void afterPatch()Description copied from class:ContentCalled after being patched.- Overrides:
- afterPatchin class- Block
 
- 
setStatspublic void setStats()Description copied from class:UnlockableContentInitializes stats on demand. Should only be called once. Only called before something is displayed.- Overrides:
- setStatsin class- PowerGenerator
 
 
-