public abstract class GuiProperty<T>
extends java.lang.Object
| Constructor and Description |
|---|
GuiProperty(T value)
Constructs a new GuiProperty with initial value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
abstract java.lang.String |
getFormatter()
Gets the format string for use with the customization GUI.
|
abstract java.lang.String |
getType()
Gets the string id specifying the property type.
|
T |
getValue()
Gets the property value.
|
int |
hashCode() |
void |
setValue(T value)
Sets the property value.
|
abstract void |
visitEntryValue(EntryValuePropertyVisitor visitor,
int guiIdentifier,
java.lang.Object value,
net.minecraft.util.ResourceLocation registryKey)
Accept a GUI generator settings visitor for the property.
|
abstract net.minecraft.client.gui.GuiPageButtonList.GuiListEntry |
visitGui(GuiPropertyVisitor visitor,
int guiIdentifier)
Accept a GUI visitor for the property.
|
abstract java.lang.String |
visitNameFormatter(FormattedPropertyVisitor visitor,
net.minecraft.util.ResourceLocation registryKey)
Accept a name formatter visitor for the property.
|
public GuiProperty(T value)
ModernBetaClientRegistries.GUI_PROPERTY then the initial value is the default value.value - The initial property value.public abstract java.lang.String getType()
public abstract net.minecraft.client.gui.GuiPageButtonList.GuiListEntry visitGui(GuiPropertyVisitor visitor, int guiIdentifier)
visitor - The property visitor.guiIdentifier - The id of the GUI button.public abstract void visitEntryValue(EntryValuePropertyVisitor visitor, int guiIdentifier, java.lang.Object value, net.minecraft.util.ResourceLocation registryKey)
visitor - The property visitor.guiIdentifier - The id of the GUI button.value - The value to set.registryKey - The registry key associated with this property.public abstract java.lang.String visitNameFormatter(FormattedPropertyVisitor visitor, net.minecraft.util.ResourceLocation registryKey)
visitor - The property visitor.registryKey - The registry key associated with this property.public abstract java.lang.String getFormatter()
public T getValue()
public void setValue(T value)
value - The property value to set.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object