Package mindustry.world.draw
Class DrawRegion
java.lang.Object
mindustry.world.draw.DrawBlock
mindustry.world.draw.DrawRegion
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
float
Any number <=0 disables layer changes.arc.graphics.g2d.TextureRegion
float
float
boolean
float
float
Fields inherited from class mindustry.world.draw.DrawBlock
iconOverride, rand
-
Constructor Summary
ConstructorsConstructorDescriptionDrawRegion
(String suffix) DrawRegion
(String suffix, float rotateSpeed) DrawRegion
(String suffix, float rotateSpeed, boolean spinSprite) -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(mindustry.gen.Building build) Draws the block itself.void
Draws the planned version of this block.arc.graphics.g2d.TextureRegion[]
void
Load any relevant texture regions.Methods inherited from class mindustry.world.draw.DrawBlock
drawLight, expectCrafter, finalIcons, getRegionsToOutline
-
Field Details
-
region
public arc.graphics.g2d.TextureRegion region -
suffix
-
spinSprite
public boolean spinSprite -
drawPlan
public boolean drawPlan -
buildingRotate
public boolean buildingRotate -
rotateSpeed
public float rotateSpeed -
x
public float x -
y
public float y -
rotation
public float rotation -
layer
public float layerAny number <=0 disables layer changes.
-
-
Constructor Details
-
DrawRegion
-
DrawRegion
-
DrawRegion
-
DrawRegion
public DrawRegion()
-
-
Method Details