public abstract class Property<T>
extends java.lang.Object
| Constructor and Description |
|---|
Property(T value)
Constructs a new Property 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 void |
visitFactory(FactoryPropertyVisitor visitor,
ModernBetaGeneratorSettings.Factory factory,
net.minecraft.util.ResourceLocation registryKey,
com.google.gson.JsonObject jsonObject)
Accept a Factory 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(PropertyVisitor visitor)
Accept a name formatter visitor for the property.
|
public Property(T value)
ModernBetaRegistries.PROPERTY then the initial value is the default value.value - The initial property value.public abstract java.lang.String getType()
public abstract void visitFactory(FactoryPropertyVisitor visitor, ModernBetaGeneratorSettings.Factory factory, net.minecraft.util.ResourceLocation registryKey, com.google.gson.JsonObject jsonObject)
visitor - The property visitor.factory - The generator settings factory.registryKey - The registry key associated with this property.jsonObject - The JSON object to read/write the property from/to.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(PropertyVisitor visitor)
visitor - The property visitor.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