Package mindustry.world.blocks.liquid
Class Conduit
java.lang.Object
mindustry.ctype.Content
mindustry.ctype.MappableContent
mindustry.ctype.UnlockableContent
mindustry.world.Block
mindustry.world.blocks.liquid.LiquidBlock
mindustry.world.blocks.liquid.Conduit
- All Implemented Interfaces:
Comparable<Content>
,Senseable
,Autotiler
- Direct Known Subclasses:
ArmoredConduit
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mindustry.world.blocks.liquid.LiquidBlock
LiquidBlock.LiquidBuild
Nested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo
Nested classes/interfaces inherited from interface mindustry.world.blocks.Autotiler
Autotiler.AutotilerHolder, Autotiler.SliceMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.Color
arc.graphics.g2d.TextureRegion[]
arc.graphics.g2d.TextureRegion
boolean
boolean
If true, the liquid region is padded at corners, so it doesn't stick out.arc.graphics.g2d.TextureRegion[][][]
indices: [rotation] [fluid type] [frame]final int
arc.graphics.g2d.TextureRegion[]
Fields inherited from class mindustry.world.blocks.liquid.LiquidBlock
bottomRegion, liquidRegion, topRegion
Fields inherited from class mindustry.world.Block
absorbLasers, acceptsItems, acceptsPayload, acceptsUnitPayloads, albedo, allowConfigInventory, allowDerelictRepair, allowDiagonal, allowRectanglePlacement, allowResupply, 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, editorIcon, editorVariantRegions, emitLight, enableDrawStatus, envDisabled, envEnabled, envRequired, explosivenessScale, fillsTile, flags, flammabilityScale, floating, fogRadius, forceDark, forceTeam, generatedIcons, group, hasColor, hasConsumers, hasItems, hasLiquids, hasPower, hasShadow, health, ignoreBuildDarkness, 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, 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
Fields inherited from class mindustry.ctype.UnlockableContent
allDatabaseTabs, alwaysUnlocked, databaseTabs, description, details, fullIcon, fullOverride, generateIcons, hideDatabase, hideDetails, inlineDescription, localizedName, selectionSize, shownPlanets, stats, techNode, techNodes, uiIcon, unlocked
Fields inherited from class mindustry.ctype.MappableContent
name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
drawPlanRegion
(BuildPlan plan, arc.util.Eachable<BuildPlan> list) getReplacement
(BuildPlan req, arc.struct.Seq<BuildPlan> plans) void
handlePlacementLine
(arc.struct.Seq<BuildPlan> plans) Mutates the given list of plans used during line placement.arc.graphics.g2d.TextureRegion[]
icons()
void
init()
Called after all blocks are created.void
load()
Called after all content is created, only on non-headless versions.Methods inherited from class mindustry.world.blocks.liquid.LiquidBlock
drawTiledFrames, drawTiledFrames
Methods inherited from class mindustry.world.Block
addBar, addLiquidBar, addLiquidBar, asFloor, beforePlaceBegan, bounds, 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, editorIcon, editorVariantRegions, environmentBuildable, findConsumer, flipRotation, getContentType, getDependencies, getDisplayIcon, getDisplayName, getEdges, getGeneratedIcons, getInsideEdges, getPlanConfigs, getPlanRegion, getRegionsToOutline, hasBuilding, hasConsumer, initBuilding, isAccessible, isAir, isFloor, isHidden, isMultiblock, isOverlay, isPlaceable, isStatic, isVisible, iterateTaken, listBars, logicVisible, makeIconRegions, minimapColor, nearbySide, newBuilding, nextConfig, onNewPlan, outputsItems, percentSolid, placeBegan, placeBegan, placeEnded, planRotation, pointConfig, postInit, removeBar, removeConsumer, removeConsumers, requirements, requirements, requirements, researchRequirements, resetGeneratedIcons, rotatedOutput, rotatedOutput, sense, sense, senseObject, setBars, setStats, setupRequirements, setupRequirements, sumAttribute, supportsEnv, synthetic, updateClipRadius, variantRegions
Methods inherited from class mindustry.ctype.UnlockableContent
checkStats, clearUnlock, displayDescription, displayExtra, emoji, emojiChar, getLogicId, hasEmoji, isOnPlanet, loadIcon, locked, makeOutline, makeOutline, makeOutline, onUnlock, quietUnlock, showUnlock, unlock, unlocked, unlockedHost, unlockedNow, unlockedNowHost
Methods inherited from class mindustry.ctype.MappableContent
toString
Methods inherited from class mindustry.ctype.Content
compareTo, hasErrored, isModded, isVanilla
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mindustry.world.blocks.Autotiler
blends, blends, blendsArmored, botHalf, buildBlending, facing, getTiling, lookingAt, lookingAtEither, notLookingAt, sliced, topHalf, transformCase
-
Field Details
-
timerFlow
public final int timerFlow -
botColor
public arc.graphics.Color botColor -
topRegions
public arc.graphics.g2d.TextureRegion[] topRegions -
botRegions
public arc.graphics.g2d.TextureRegion[] botRegions -
capRegion
public arc.graphics.g2d.TextureRegion capRegion -
rotateRegions
public arc.graphics.g2d.TextureRegion[][][] rotateRegionsindices: [rotation] [fluid type] [frame] -
padCorners
public boolean padCornersIf true, the liquid region is padded at corners, so it doesn't stick out. -
leaks
public boolean leaks -
junctionReplacement
-
bridgeReplacement
-
rotBridgeReplacement
-
-
Constructor Details
-
Conduit
-
-
Method Details
-
init
public void init()Description copied from class:Block
Called after all blocks are created. -
load
public void load()Description copied from class:Content
Called after all content is created, only on non-headless versions. Use for loading regions or other image data. -
drawPlanRegion
- Overrides:
drawPlanRegion
in classBlock
-
getReplacement
- Overrides:
getReplacement
in classBlock
- Returns:
- a possible replacement for this block when placed in a line by the player.
-
blends
-
handlePlacementLine
Description copied from class:Block
Mutates the given list of plans used during line placement.- Overrides:
handlePlacementLine
in classBlock
-
icons
public arc.graphics.g2d.TextureRegion[] icons()- Overrides:
icons
in classLiquidBlock
-