public class GuiContextData
extends java.lang.Object
implements java.io.Serializable
PluginDefinitionData
item to
store the contexts where a plugin can be used in a client application.
A context is an item type and context type code. The context type code can currently
take two values: 0 = list; 1 = itemModifier and Type | Field and Description |
---|---|
private int |
contextType |
private int |
itemType |
private static long |
serialVersionUID |
Constructor and Description |
---|
GuiContextData() |
GuiContextData(int itemType,
int contextType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Check if this object is equal to another
GuiContext
object. |
int |
getContextType() |
int |
getItemType() |
int |
hashCode()
Calculate the hash code for the object.
|
(package private) void |
setContextType(int contextType) |
(package private) void |
setItemType(int itemType) |
private static final long serialVersionUID
private int itemType
private int contextType
GuiContextData()
public GuiContextData(int itemType, int contextType)
public int getItemType()
void setItemType(int itemType)
public int getContextType()
void setContextType(int contextType)
public boolean equals(java.lang.Object o)
GuiContext
object. They are equal if both have the same item type and context typeequals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object