Package mindustry.world.draw
Class DrawPower
java.lang.Object
mindustry.world.draw.DrawBlock
mindustry.world.draw.DrawPower
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanarc.graphics.Colorarc.graphics.g2d.TextureRegionarc.graphics.Colorarc.graphics.g2d.TextureRegionfloatAny number <=0 disables layer changes.booleanIf false, fades between emptyRegion and fullRegion instead of mixcol between empty and full colors.Fields inherited from class mindustry.world.draw.DrawBlock
iconOverride, rand -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(mindustry.gen.Building build) Draws the block itself.voidDraws the planned version of this block.arc.graphics.g2d.TextureRegion[]voidLoad any relevant texture regions.Methods inherited from class mindustry.world.draw.DrawBlock
drawLight, expectCrafter, finalIcons, getRegionsToOutline
-
Field Details
-
emptyRegion
public arc.graphics.g2d.TextureRegion emptyRegion -
fullRegion
public arc.graphics.g2d.TextureRegion fullRegion -
suffix
-
drawPlan
public boolean drawPlan -
mixcol
public boolean mixcolIf false, fades between emptyRegion and fullRegion instead of mixcol between empty and full colors. -
emptyLightColor
public arc.graphics.Color emptyLightColor -
fullLightColor
public arc.graphics.Color fullLightColor -
layer
public float layerAny number <=0 disables layer changes.
-
-
Constructor Details
-
DrawPower
public DrawPower() -
DrawPower
-
-
Method Details