public class GuiComponent
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
GuiComponent.Transform |
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.List<GuiComponent> |
children |
protected GuiComponent.Transform |
transform |
| 构造器和说明 |
|---|
GuiComponent() |
| 限定符和类型 | 方法和说明 |
|---|---|
GuiComponent |
add(GuiComponent component)
This is just a really simple function which indicates the order of draw of the gui.
|
void |
applyPlugin(Plugin plugin) |
void |
disposePlugin(Plugin plugin) |
void |
draw() |
protected void |
finalize() |
protected Pipeline<DrawNode> |
getDrawPipe() |
GuiComponent |
getParent() |
protected java.util.List<Plugin> |
getPlugins() |
Properties |
getProperties() |
int |
getRelativeX() |
int |
getRelativeY() |
void |
onLoad(net.minecraft.inventory.Container container)
This method will be called when the player open the GuiContainer containing this component.
|
GuiComponent |
setPosRelative(int x,
int y)
Set the relative position of this component.
|
GuiComponent.Transform |
transform() |
protected GuiComponent.Transform transform
protected java.util.List<GuiComponent> children
public Properties getProperties()
public GuiComponent getParent()
protected java.util.List<Plugin> getPlugins()
public GuiComponent add(GuiComponent component)
The position of component on parameter will relate to this component's position.
If this position is (50,50) and the position of component on parameter is (10,10). The actual position of the component on parameter is (60,60) if this component has no parent.
component - The component may overlap this component.public void applyPlugin(Plugin plugin)
public void disposePlugin(Plugin plugin)
public void draw()
public void onLoad(net.minecraft.inventory.Container container)
protected void finalize()
throws java.lang.Throwable
finalize 在类中 java.lang.Objectjava.lang.Throwablepublic GuiComponent setPosRelative(int x, int y)
x - The relative position x of the component.y - The relative position y of the component.public int getRelativeX()
public int getRelativeY()
public GuiComponent.Transform transform()