Package mindustry.world.blocks.payloads
Class BuildPayload
java.lang.Object
mindustry.world.blocks.payloads.BuildPayload
-
Field Summary
Fields inherited from interface mindustry.world.blocks.payloads.Payload
payloadBlock, payloadUnit
-
Constructor Summary
ConstructorDescriptionBuildPayload
(mindustry.gen.Building build) BuildPayload
(Block block, Team team) -
Method Summary
Modifier and TypeMethodDescriptionblock()
float
content()
void
draw()
draws this payload at a position.void
drawShadow
(float alpha) icon()
void
void
void
set
(float x, float y, float rotation) sets this payload's position on the map.float
size()
void
update
(mindustry.gen.Unit unitHolder, mindustry.gen.Building buildingHolder) update this payload inside a container unit or building.void
writes the payload for saving.float
x()
float
y()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
build
public mindustry.gen.Building build
-
-
Constructor Details
-
BuildPayload
-
BuildPayload
public BuildPayload(mindustry.gen.Building build)
-
-
Method Details
-
block
-
place
-
place
-
content
-
update
public void update(@Nullable mindustry.gen.Unit unitHolder, @Nullable mindustry.gen.Building buildingHolder) Description copied from interface:Payload
update this payload inside a container unit or building. either can be null. -
requirements
- Specified by:
requirements
in interfacePayload
- Returns:
- the items needed to make this payload; may be empty.
-
buildTime
public float buildTime() -
x
public float x() -
y
public float y() -
size
public float size() -
write
Description copied from interface:Payload
writes the payload for saving. -
set
public void set(float x, float y, float rotation) Description copied from interface:Payload
sets this payload's position on the map. -
drawShadow
public void drawShadow(float alpha) - Specified by:
drawShadow
in interfacePayload
-
draw
public void draw()Description copied from interface:Payload
draws this payload at a position. -
icon
-