Package mindustry.world.blocks.units
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionarc.math.geom.Vec2
int
float
float
float
int
arc.struct.Seq<UnitAssemblerModule.UnitAssemblerModuleBuild>
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
draw()
void
void
droneSpawned
(int id) arc.math.geom.Vec2
int
getMaximumAccepted
(Item item) arc.math.geom.Vec2
boolean
moduleFits
(Block other, float ox, float oy, int rotation) void
onCommand
(arc.math.geom.Vec2 target) plan()
void
read
(arc.util.io.Reads read, byte revision) boolean
ready()
void
double
boolean
void
spawned()
unit()
void
void
byte
version()
void
write
(arc.util.io.Writes write) void
yeetPayload
(Payload payload) Methods inherited from class mindustry.world.blocks.payloads.PayloadBlock.PayloadBlockBuild
acceptUnitPayload, blends, canControlSelect, drawPayload, drawTeamTop, dumpPayload, getPayload, handlePayload, hasArrived, moveInPayload, moveInPayload, moveOutPayload, onControlSelect, onDestroyed, onRemoved, pickedUp, sense, takePayload, updatePayload
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
-
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
-
updateModules
-
removeModule
-
checkTier
public void checkTier() -
unit
-
plan
-
shouldConsume
public boolean shouldConsume()- Overrides:
shouldConsume
in classmindustry.gen.Building
-
drawSelect
public void drawSelect()- Overrides:
drawSelect
in classmindustry.gen.Building
-
display
public void display(arc.scene.ui.layout.Table table) - Specified by:
display
in interfaceDisplayable
- Overrides:
display
in classmindustry.gen.Building
-
updateTile
public void updateTile()- Overrides:
updateTile
in classPayloadBlock.PayloadBlockBuild<Payload>
-
droneSpawned
public void droneSpawned(int id) -
spawned
public void spawned() -
draw
public void draw()- Overrides:
draw
in classmindustry.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
-
sense
-
getPayloads
- Overrides:
getPayloads
in classmindustry.gen.Building
-
acceptPayload
- Overrides:
acceptPayload
in classPayloadBlock.PayloadBlockBuild<Payload>
-
getMaximumAccepted
- Overrides:
getMaximumAccepted
in classmindustry.gen.Building
-
acceptItem
- Overrides:
acceptItem
in classmindustry.gen.Building
-
getCommandPosition
public arc.math.geom.Vec2 getCommandPosition()- Overrides:
getCommandPosition
in classmindustry.gen.Building
-
onCommand
public void onCommand(arc.math.geom.Vec2 target) - Overrides:
onCommand
in classmindustry.gen.Building
-
version
public byte version()- Overrides:
version
in classmindustry.gen.Building
-
write
public void write(arc.util.io.Writes write) - Specified by:
write
in interfacemindustry.gen.Entityc
- Overrides:
write
in classPayloadBlock.PayloadBlockBuild<Payload>
-
read
public void read(arc.util.io.Reads read, byte revision) - Overrides:
read
in classPayloadBlock.PayloadBlockBuild<Payload>
-