Class UnitAssembler.UnitAssemblerBuild

java.lang.Object
mindustry.gen.Building
mindustry.world.blocks.payloads.PayloadBlock.PayloadBlockBuild<Payload>
mindustry.world.blocks.units.UnitAssembler.UnitAssemblerBuild
All Implemented Interfaces:
arc.math.geom.Position, arc.math.geom.QuadTree.QuadTreeObject, Sized, mindustry.gen.Buildingc, mindustry.gen.Entityc, mindustry.gen.Healthc, mindustry.gen.Posc, mindustry.gen.Teamc, mindustry.gen.Timerc, Controllable, Senseable, Settable, Displayable
Enclosing class:
UnitAssembler

public class UnitAssembler.UnitAssemblerBuild extends PayloadBlock.PayloadBlockBuild<Payload>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    arc.math.geom.Vec2
     
    int
     
    float
     
    float
     
    float
     
    int
     
     
    float
     
    float
     
    protected arc.struct.IntSeq
     
    float
     
    float
     
    arc.struct.Seq<mindustry.gen.Unit>
     
    float
     
    boolean
     
    protected arc.struct.IntSeq
     

    Fields inherited from class mindustry.world.blocks.payloads.PayloadBlock.PayloadBlockBuild

    carried, payload, payRotation, payVector

    Fields inherited from class mindustry.gen.Building

    added, block, bulletDamageEvent, cdump, dead, dumpAccum, efficiency, enabled, healSuppressionTime, health, hitDuration, hitTime, id, index__all, index__build, initialized, items, lastAccessed, lastDamageTime, lastDisabler, lastHealTime, liquids, maxHealth, optionalEfficiency, payloadRotation, potentialEfficiency, power, proximity, recentDamageTime, rotation, shouldConsumePower, sleeping, sleepingEntities, sleepTime, suppressColor, team, teamChangeEvent, tempBuilds, tile, timer, timeScale, timeScaleDuration, timeToSleep, tmpTiles, visibleFlags, visualLiquid, wasDamaged, wasVisible, x, y

    Fields inherited from interface mindustry.logic.Senseable

    noSensed
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    acceptItem(mindustry.gen.Building source, Item item)
     
    boolean
    acceptPayload(mindustry.gen.Building source, Payload payload)
     
    boolean
    checkSolid(arc.math.geom.Vec2 v, boolean same)
     
    void
     
    void
    display(arc.scene.ui.layout.Table table)
     
    void
     
    void
     
    void
    droneSpawned(int id)
     
    arc.math.geom.Vec2
     
    int
     
     
    arc.math.geom.Vec2
     
    boolean
    moduleFits(Block other, float ox, float oy, int rotation)
     
    void
    onCommand(arc.math.geom.Vec2 target)
     
     
    void
    read(arc.util.io.Reads read, byte revision)
     
    boolean
     
    void
     
    double
    sense(LAccess sensor)
     
    boolean
     
    void
     
     
    void
     
    void
     
    byte
     
    void
    write(arc.util.io.Writes write)
     
    void
     

    Methods inherited from class mindustry.gen.Building

    absorbLasers, acceptLiquid, acceptStack, add, addPlan, addPlan, afterDestroyed, afterPickedUp, afterRead, afterReadAll, allowUpdate, ambientVolume, applyBoost, applyHealSuppression, applyHealSuppression, applySlowdown, as, back, beforeWrite, blockOn, buildConfiguration, buildOn, calculateHeat, calculateHeat, canBeReplaced, canConsume, canDump, canDumpLiquid, canPickup, canResupply, canUnload, canWithdraw, changeTeam, cheating, checkAllowUpdate, checkSolid, checkSuppression, clampHealth, classId, closestCore, closestEnemyCore, collide, collision, conductsTo, config, configTapped, configure, configureAny, configured, consume, consumeTriggerValid, control, control, core, create, create, created, damage, damage, damage, damage, damageContinuous, damageContinuousPierce, damaged, damagePierce, damagePierce, dead, dead, delta, deselect, displayBars, displayConsumption, drawConfigure, drawCracks, drawDisabled, drawItemSelection, drawLight, drawLiquidLight, drawrot, drawStatus, drawTeam, dropped, dump, dump, dumpAccumulate, dumpAccumulate, dumpLiquid, dumpLiquid, dumpLiquid, dumpPayload, eachEdge, edelta, efficiencyScale, explosionItemCap, findClosestEdge, floor, floorOn, flowItems, fogRadius, front, getCursor, getDisplayEfficiency, getDisplayIcon, getDisplayName, getLiquidDestination, getPowerConnections, getPowerProduction, getProgressIncrease, getStackOffset, getX, getY, handleDamage, handleItem, handleLiquid, handleStack, handleString, handleUnitPayload, heal, heal, healFract, health, health, healthChanged, healthf, hitbox, hitSize, hitTime, hitTime, id, id, incrementDump, inFogTo, init, interactable, isAdded, isDiscovered, isHealSuppressed, isInsulated, isLocal, isPayload, isRemote, isValid, itemTaken, kill, killed, left, maxHealth, maxHealth, moduleBitmask, moveForward, moveLiquid, moveLiquidForward, movePayload, nearby, nearby, noSleep, offload, onConfigureBuildTapped, onConfigureClosed, onConfigureTapped, onDeconstructed, onNearbyBuildAdded, onProximityAdded, onProximityRemoved, onProximityUpdate, onSolid, overwrote, payloadCheck, payloadDraw, placed, playerPlaced, pos, powerGraphRemoved, produced, produced, productionValid, progress, puddleOn, put, read, readAll, readBase, readSync, recentlyHealed, relativeTo, relativeTo, relativeTo, relativeToEdge, remove, removeFromProximity, removeStack, right, rotdeg, self, senseObject, serialize, set, set, setIndex__all, setIndex__build, setProp, setProp, setProp, shouldAmbientSound, shouldHideConfigure, shouldShowConfigure, sleep, splashLiquid, status, tapped, team, team, tileOn, tileX, tileY, timer, timer, timer, timeScale, toString, totalProgress, transferLiquid, trns, trns, unitOn, unitOnAny, unitRemoved, update, updateConsumption, updateEfficiencyMultiplier, updateFogVisibility, updateLastAccess, updatePayload, updatePowerGraph, updateProximity, updateTableAlign, warmup, wasRecentlyDamaged, wasRecentlyHealed, writeAll, writeBase, writeSync, x, x, y, y

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface mindustry.ui.Displayable

    displayable

    Methods inherited from interface arc.math.geom.Position

    angleTo, angleTo, dst, dst, dst2, dst2, within, within
  • Field Details

    • readUnits

      protected arc.struct.IntSeq readUnits
    • whenSyncedUnits

      protected arc.struct.IntSeq whenSyncedUnits
    • commandPos

      @Nullable public arc.math.geom.Vec2 commandPos
    • units

      public arc.struct.Seq<mindustry.gen.Unit> units
    • modules

      public arc.struct.Seq<UnitAssemblerModule.UnitAssemblerModuleBuild> modules
    • blocks

      public PayloadSeq blocks
    • progress

      public float progress
    • warmup

      public float warmup
    • droneWarmup

      public float droneWarmup
    • powerWarmup

      public float powerWarmup
    • sameTypeWarmup

      public float sameTypeWarmup
    • invalidWarmup

      public float invalidWarmup
    • currentTier

      public int currentTier
    • lastTier

      public int lastTier
    • wasOccupied

      public boolean wasOccupied
    • droneProgress

      public float droneProgress
    • totalDroneProgress

      public float totalDroneProgress
  • Constructor Details

    • UnitAssemblerBuild

      public UnitAssemblerBuild()
  • Method Details

    • getUnitSpawn

      public arc.math.geom.Vec2 getUnitSpawn()
    • moduleFits

      public boolean moduleFits(Block other, float ox, float oy, int rotation)
    • updateModules

      public void updateModules(UnitAssemblerModule.UnitAssemblerModuleBuild build)
    • removeModule

      public void removeModule(UnitAssemblerModule.UnitAssemblerModuleBuild build)
    • checkTier

      public void checkTier()
    • unit

      public UnitType unit()
    • plan

    • shouldConsume

      public boolean shouldConsume()
      Overrides:
      shouldConsume in class mindustry.gen.Building
    • drawSelect

      public void drawSelect()
      Overrides:
      drawSelect in class mindustry.gen.Building
    • display

      public void display(arc.scene.ui.layout.Table table)
      Specified by:
      display in interface Displayable
      Overrides:
      display in class mindustry.gen.Building
    • updateTile

      public void updateTile()
      Overrides:
      updateTile in class PayloadBlock.PayloadBlockBuild<Payload>
    • droneSpawned

      public void droneSpawned(int id)
    • spawned

      public void spawned()
    • draw

      public void draw()
      Overrides:
      draw in class mindustry.gen.Building
    • checkSolid

      public boolean checkSolid(arc.math.geom.Vec2 v, boolean same)
    • ready

      public boolean ready()
      Returns:
      true if this block is ready to produce units, e.g. requirements met
    • yeetPayload

      public void yeetPayload(Payload payload)
    • sense

      public double sense(LAccess sensor)
      Specified by:
      sense in interface Senseable
      Overrides:
      sense in class mindustry.gen.Building
    • getPayloads

      public PayloadSeq getPayloads()
      Overrides:
      getPayloads in class mindustry.gen.Building
    • acceptPayload

      public boolean acceptPayload(mindustry.gen.Building source, Payload payload)
      Overrides:
      acceptPayload in class PayloadBlock.PayloadBlockBuild<Payload>
    • getMaximumAccepted

      public int getMaximumAccepted(Item item)
      Overrides:
      getMaximumAccepted in class mindustry.gen.Building
    • acceptItem

      public boolean acceptItem(mindustry.gen.Building source, Item item)
      Overrides:
      acceptItem in class mindustry.gen.Building
    • getCommandPosition

      public arc.math.geom.Vec2 getCommandPosition()
      Overrides:
      getCommandPosition in class mindustry.gen.Building
    • onCommand

      public void onCommand(arc.math.geom.Vec2 target)
      Overrides:
      onCommand in class mindustry.gen.Building
    • version

      public byte version()
      Overrides:
      version in class mindustry.gen.Building
    • write

      public void write(arc.util.io.Writes write)
      Specified by:
      write in interface mindustry.gen.Entityc
      Overrides:
      write in class PayloadBlock.PayloadBlockBuild<Payload>
    • read

      public void read(arc.util.io.Reads read, byte revision)
      Overrides:
      read in class PayloadBlock.PayloadBlockBuild<Payload>