ItemStackListRenderState

class ItemStackListRenderState(val stacks: List<ItemStack>) : GuiRearrangeable

Describes an item stack list that ItemStackListRenderer draws. The setters mutate this state and return it, so a list is configured by chaining them and finishing with draw.

Constructors

Link copied to clipboard
constructor(stacks: List<ItemStack>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var bounds: BoundingBox2f

Only GuiOverlapRearranger needs the box. States that are not queued for rearrangement are positioned by centerX and centerY alone, thus this stays empty for them.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val stacks: List<ItemStack>
Link copied to clipboard
var title: Component?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun draw(graphics: GuiGraphicsExtractor, rearrange: Boolean = false)
Link copied to clipboard
fun rectBackground(color: Color4b, outlineColor: Color4b = Color4b.TRANSPARENT, margin: Float = this.backgroundMargin): ItemStackListRenderState
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun title(title: Component?, color: Color4b = this.titleColor): ItemStackListRenderState