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 pWidth, int pHeight) SpacerElement
(int pX, int pY, int pWidth, int pHeight) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getWidth()
int
getX()
int
getY()
static SpacerElement
height
(int pHeight) void
setX
(int pX) void
setY
(int pY) void
visitWidgets
(Consumer<AbstractWidget> pConsumer) static SpacerElement
width
(int pWidth) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 pWidth, int pHeight) -
SpacerElement
public SpacerElement(int pX, int pY, int pWidth, int pHeight)
-
-
Method Details
-
width
-
height
-
setX
public void setX(int pX) - Specified by:
setX
in interfaceLayoutElement
-
setY
public void setY(int pY) - Specified by:
setY
in interfaceLayoutElement
-
getX
public int getX()- Specified by:
getX
in interfaceLayoutElement
-
getY
public int getY()- Specified by:
getY
in interfaceLayoutElement
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceLayoutElement
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceLayoutElement
-
visitWidgets
- Specified by:
visitWidgets
in interfaceLayoutElement
-