Package guideme.document.block
Class LytSlot
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytSlot
- All Implemented Interfaces:
InteractiveElement,Styleable
Renders a standard Minecraft GUI slot.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LytRectcomputeLayout(LayoutContext context, int x, int y, int availableWidth) getTooltip(float x, float y) booleanprotected voidonLayoutMoved(int deltaX, int deltaY) Implement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)being moved.voidrender(RenderContext context) voidsetLargeSlot(boolean largeSlot) Methods inherited from class guideme.document.block.LytBlock
getBorderBottom, getBorderLeft, getBorderRight, getBorderTop, getBounds, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, isCulled, isFullWidth, layout, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setFullWidth, setLayoutPos, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopMethods inherited from class guideme.document.block.LytNode
getChildren, getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, removeChild, setHoverStyle, setSourceNode, setStyle, tick, visit, visit, visitChildrenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface guideme.document.interaction.InteractiveElement
mouseCaptureLost, mouseClicked, mouseMoved, mouseReleasedMethods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Field Details
-
OUTER_SIZE
public static final int OUTER_SIZE- See Also:
-
OUTER_SIZE_LARGE
public static final int OUTER_SIZE_LARGE- See Also:
-
-
Constructor Details
-
LytSlot
public LytSlot(net.minecraft.world.item.crafting.display.SlotDisplay display) -
LytSlot
public LytSlot(net.minecraft.world.item.crafting.Ingredient ingredient) -
LytSlot
-
LytSlot
public LytSlot(net.minecraft.world.item.ItemStack stack)
-
-
Method Details
-
isLargeSlot
public boolean isLargeSlot() -
setLargeSlot
public void setLargeSlot(boolean largeSlot) -
computeLayout
- Specified by:
computeLayoutin classLytBlock
-
onLayoutMoved
protected void onLayoutMoved(int deltaX, int deltaY) Description copied from class:LytBlockImplement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)being moved.- Specified by:
onLayoutMovedin classLytBlock
-
render
-
getTooltip
- Specified by:
getTooltipin interfaceInteractiveElement- Parameters:
x- X position of the mouse in document coordinates.y- Y position of the mouse in document coordinates.
-