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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(mindustry.gen.Building build) Draws the block itself.void
drawLight
(mindustry.gen.Building build) Draws any extra light for the block.void
Draws the planned version of this block.expectCrafter
(Block block) final TextureRegion[]
finalIcons
(Block block) void
getRegionsToOutline
(Block block, Seq<TextureRegion> out) void
Load any relevant texture regions.
-
Field Details
-
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
-