public class StringProperty extends Property<java.lang.String>
| Constructor and Description |
|---|
StringProperty(java.lang.String value)
Constructs a new StringProperty with an initial string.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormatter()
Gets the format string for use with the customization GUI.
|
java.lang.String |
getType()
Gets the string id specifying the property type.
|
void |
visitEntryValue(EntryValuePropertyVisitor visitor,
int guiIdentifier,
java.lang.Object value,
net.minecraft.util.ResourceLocation registryKey)
Accept a GUI generator settings visitor for the property.
|
void |
visitFactory(FactoryPropertyVisitor visitor,
ModernBetaGeneratorSettings.Factory factory,
net.minecraft.util.ResourceLocation registryKey,
com.google.gson.JsonObject jsonObject)
Accept a Factory visitor for the property.
|
net.minecraft.client.gui.GuiPageButtonList.GuiListEntry |
visitGui(GuiPropertyVisitor visitor,
int guiIdentifier)
Accept a GUI visitor for the property.
|
java.lang.String |
visitNameFormatter(PropertyVisitor visitor)
Accept a name formatter visitor for the property.
|
public StringProperty(java.lang.String value)
value - The initial String value.public java.lang.String getType()
Propertypublic void visitFactory(FactoryPropertyVisitor visitor, ModernBetaGeneratorSettings.Factory factory, net.minecraft.util.ResourceLocation registryKey, com.google.gson.JsonObject jsonObject)
PropertyvisitFactory in class Property<java.lang.String>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 net.minecraft.client.gui.GuiPageButtonList.GuiListEntry visitGui(GuiPropertyVisitor visitor, int guiIdentifier)
Propertypublic void visitEntryValue(EntryValuePropertyVisitor visitor, int guiIdentifier, java.lang.Object value, net.minecraft.util.ResourceLocation registryKey)
PropertyvisitEntryValue in class Property<java.lang.String>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 java.lang.String visitNameFormatter(PropertyVisitor visitor)
PropertyvisitNameFormatter in class Property<java.lang.String>visitor - The property visitor.public java.lang.String getFormatter()
PropertygetFormatter in class Property<java.lang.String>