public final class BiomeProperty extends StringProperty
| Constructor and Description |
|---|
BiomeProperty(net.minecraft.util.ResourceLocation value)
Constructs a new BiomeProperty with an initial biome, storing the biome's registry name.
|
| Modifier and Type | Method and Description |
|---|---|
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 setter 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.
|
getFormatterpublic BiomeProperty(net.minecraft.util.ResourceLocation value)
value - The initial Biome registry name value.public java.lang.String getType()
PropertygetType in class StringPropertypublic void visitFactory(FactoryPropertyVisitor visitor, ModernBetaGeneratorSettings.Factory factory, net.minecraft.util.ResourceLocation registryKey, com.google.gson.JsonObject jsonObject)
PropertyvisitFactory in class StringPropertyvisitor - 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)
PropertyvisitGui in class StringPropertyvisitor - The property visitor.guiIdentifier - The id of the GUI button.public void visitEntryValue(EntryValuePropertyVisitor visitor, int guiIdentifier, java.lang.Object value, net.minecraft.util.ResourceLocation registryKey)
PropertyvisitEntryValue in class StringPropertyvisitor - The property visitor.guiIdentifier - The id of the GUI button.value - The value to set.registryKey - The registry key associated with this property.