Package net.minecraft.client.gui.layouts
Class SpacerElement
java.lang.Object
net.minecraft.client.gui.layouts.SpacerElement
- All Implemented Interfaces:
LayoutElement
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpacerElement(int width, int height) SpacerElement(int x, int y, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionintintgetWidth()intgetX()intgetY()static SpacerElementheight(int height) voidsetX(int x) voidsetY(int y) voidvisitWidgets(Consumer<AbstractWidget> consumer) static SpacerElementwidth(int width) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
getRectangle, setPosition
-
Field Details
-
x
private int x -
y
private int y -
width
private final int width -
height
private final int height
-
-
Constructor Details
-
SpacerElement
public SpacerElement(int width, int height) -
SpacerElement
public SpacerElement(int x, int y, int width, int height)
-
-
Method Details
-
width
-
height
-
setX
public void setX(int x) - Specified by:
setXin interfaceLayoutElement
-
setY
public void setY(int y) - Specified by:
setYin interfaceLayoutElement
-
getX
public int getX()- Specified by:
getXin interfaceLayoutElement
-
getY
public int getY()- Specified by:
getYin interfaceLayoutElement
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceLayoutElement
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceLayoutElement
-
visitWidgets
- Specified by:
visitWidgetsin interfaceLayoutElement
-