Class SocketWidget<T extends net.minecraft.client.gui.widget.LayoutWidget>
java.lang.Object
net.replaceitem.reconfigure.screen.widget.layout.SocketWidget<T>
- All Implemented Interfaces:
net.minecraft.client.gui.widget.LayoutWidget,net.minecraft.client.gui.widget.Widget
public class SocketWidget<T extends net.minecraft.client.gui.widget.LayoutWidget>
extends Object
implements net.minecraft.client.gui.widget.LayoutWidget
Helper wrapper widget that always contains one wrapper widget. This is used to the widget can be swapped out or
re-created. Things like GridWidget does not support removing widgets from it, so to do so, a new one needs to be
created and re-filled. If the grid widget is contained in another LayoutWidget however, it cannot be removed from
that for re-creation. This SocketWidget is used as a way to keep itself in an outer grid, but replace the
LayoutWidget within.
-
Constructor Summary
Constructors -
Method Summary
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.widget.LayoutWidget
forEachChildMethods inherited from interface net.minecraft.client.gui.widget.Widget
getNavigationFocus, setPosition
-
Constructor Details
-
SocketWidget
-
-
Method Details
-
getInner
-
setInner
-
getX
public int getX()- Specified by:
getXin interfacenet.minecraft.client.gui.widget.Widget
-
getY
public int getY()- Specified by:
getYin interfacenet.minecraft.client.gui.widget.Widget
-
getWidth
public int getWidth()- Specified by:
getWidthin interfacenet.minecraft.client.gui.widget.Widget
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacenet.minecraft.client.gui.widget.Widget
-
setX
public void setX(int x) - Specified by:
setXin interfacenet.minecraft.client.gui.widget.Widget
-
setY
public void setY(int y) - Specified by:
setYin interfacenet.minecraft.client.gui.widget.Widget
-
refreshPositions
public void refreshPositions()- Specified by:
refreshPositionsin interfacenet.minecraft.client.gui.widget.LayoutWidget
-
forEachElement
- Specified by:
forEachElementin interfacenet.minecraft.client.gui.widget.LayoutWidget
-