Package mindustry.world.draw
Class DrawBlock
java.lang.Object
mindustry.world.draw.DrawBlock
- Direct Known Subclasses:
DrawArcSmelt,DrawBlurSpin,DrawBubbles,DrawCells,DrawCircles,DrawCrucibleFlame,DrawCultivator,DrawDefault,DrawFade,DrawFlame,DrawFrames,DrawGlowRegion,DrawHeatInput,DrawHeatOutput,DrawHeatRegion,DrawLiquidOutputs,DrawLiquidRegion,DrawLiquidTile,DrawMulti,DrawMultiWeave,DrawParticles,DrawPistons,DrawPower,DrawPulseShape,DrawPumpLiquid,DrawRegion,DrawShape,DrawSideRegion,DrawSoftParticles,DrawSpikes,DrawTurret,DrawWarmupRegion,DrawWeave
An implementation of custom rendering behavior for a crafter block.
This is used mostly for mods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionString[]If set, the icon is overridden to be these strings, in order.protected static final arc.math.Rand -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(mindustry.gen.Building build) Draws the block itself.voiddrawLight(mindustry.gen.Building build) Draws any extra light for the block.voidDraws the planned version of this block.expectCrafter(Block block) final arc.graphics.g2d.TextureRegion[]finalIcons(Block block) voidgetRegionsToOutline(Block block, arc.struct.Seq<arc.graphics.g2d.TextureRegion> out) arc.graphics.g2d.TextureRegion[]voidLoad any relevant texture regions.
-
Field Details
-
rand
protected static final arc.math.Rand rand -
iconOverride
If set, the icon is overridden to be these strings, in order. Each string is a suffix.
-
-
Constructor Details
-
DrawBlock
public DrawBlock()
-
-
Method Details
-
getRegionsToOutline
-
draw
public void draw(mindustry.gen.Building build) Draws the block itself. -
drawLight
public void drawLight(mindustry.gen.Building build) Draws any extra light for the block. -
drawPlan
Draws the planned version of this block. -
load
Load any relevant texture regions. -
icons
- Returns:
- the generated icons to be used for this block.
-
finalIcons
-
expectCrafter
-