Class ItemBridge
java.lang.Object
mindustry.ctype.Content
mindustry.ctype.MappableContent
mindustry.ctype.UnlockableContent
mindustry.world.Block
mindustry.world.blocks.distribution.ItemBridge
- All Implemented Interfaces:
Comparable<Content>,Senseable
- Direct Known Subclasses:
BufferedItemBridge,LiquidBridge
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatarc.graphics.g2d.TextureRegionfloatfloatarc.graphics.g2d.TextureRegionfloatarc.graphics.g2d.TextureRegionbooleanbooleanbooleanintfinal intfloatFields inherited from class mindustry.world.Block
absorbLasers, 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.UnlockableContent
allDatabaseTabs, alwaysUnlocked, databaseTabs, 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 TypeMethodDescriptionvoidchangePlacementPath(arc.struct.Seq<arc.math.geom.Point2> points, int rotation) Mutates the given list of points used during line placement.voiddrawBridge(BuildPlan req, float ox, float oy, float flip) voiddrawPlace(int x, int y, int rotation, boolean valid) Drawn when you are placing a block.voiddrawPlanConfigTop(BuildPlan plan, arc.util.Eachable<BuildPlan> list) findLink(int x, int y) voidhandlePlacementLine(arc.struct.Seq<BuildPlan> plans) Mutates the given list of plans used during line placement.voidinit()Called after all blocks are created.booleanbooleanbooleanpositionsValid(int x1, int y1, int x2, int y2) 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, 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, drawPlaceText, drawPlan, drawPlan, drawPlanConfig, drawPlanConfigCenter, drawPlanConfigCenter, drawPlanRegion, drawPotentialLinks, drawShadow, drawSideRegion, editorPicked, environmentBuildable, findConsumer, flipRotation, getConfig, getContentType, getDependencies, getDisplayIcon, getDisplayName, getEdges, getGeneratedIcons, getInsideEdges, getPlanConfigs, getPlanRegion, getRegionsToOutline, getReplacement, hasBuilding, hasConsumer, icons, initBuilding, isAccessible, isAir, isBanned, isDarkened, isFloor, isHidden, isMultiblock, isOverlay, isPlaceable, isStatic, isVisible, iterateTaken, listBars, load, logicVisible, makeIconRegions, minimapColor, nearbySide, newBuilding, nextConfig, onNewPlan, onPicked, outputsItems, percentSolid, placeBegan, placeBegan, placeEnded, planRotation, pointConfig, postInit, reinitializeConsumers, removeBar, removeConsumer, removeConsumers, requirements, requirements, requirements, researchRequirements, resetGeneratedIcons, rotatedOutput, rotatedOutput, sense, sense, senseObject, setBars, setupRequirements, setupRequirements, sumAttribute, supportsEnv, synthetic, updateClipRadius, variantRegionsMethods 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, unlockedNowHostMethods inherited from class mindustry.ctype.MappableContent
toStringMethods inherited from class mindustry.ctype.Content
compareTo, hasErrored, isModded, isVanilla
-
Field Details
-
timerCheckMoved
public final int timerCheckMoved -
range
public int range -
transportTime
public float transportTime -
endRegion
public arc.graphics.g2d.TextureRegion endRegion -
bridgeRegion
public arc.graphics.g2d.TextureRegion bridgeRegion -
arrowRegion
public arc.graphics.g2d.TextureRegion arrowRegion -
fadeIn
public boolean fadeIn -
moveArrows
public boolean moveArrows -
pulse
public boolean pulse -
arrowSpacing
public float arrowSpacing -
arrowOffset
public float arrowOffset -
arrowPeriod
public float arrowPeriod -
arrowTimeScl
public float arrowTimeScl -
bridgeWidth
public float bridgeWidth -
lastBuild
-
-
Constructor Details
-
ItemBridge
-
-
Method Details
-
setStats
public void setStats()Description copied from class:UnlockableContentInitializes stats on demand. Should only be called once. Only called before something is displayed. -
drawPlanConfigTop
- Overrides:
drawPlanConfigTopin classBlock
-
drawBridge
-
drawPlace
public void drawPlace(int x, int y, int rotation, boolean valid) Description copied from class:BlockDrawn when you are placing a block. -
linkValid
-
linkValid
-
positionsValid
public boolean positionsValid(int x1, int y1, int x2, int y2) -
findLink
-
init
public void init()Description copied from class:BlockCalled after all blocks are created. -
handlePlacementLine
Description copied from class:BlockMutates the given list of plans used during line placement.- Overrides:
handlePlacementLinein classBlock
-
changePlacementPath
public void changePlacementPath(arc.struct.Seq<arc.math.geom.Point2> points, int rotation) Description copied from class:BlockMutates the given list of points used during line placement.- Overrides:
changePlacementPathin classBlock
-