public class ScreenProperty extends GuiProperty<ScreenProperty.PropertyScreenCreator>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ScreenProperty.PropertyScreenCreator |
| Constructor and Description |
|---|
ScreenProperty(ScreenProperty.PropertyScreenCreator value)
Constructs a new ScreenProperty.
|
| 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.
|
net.minecraft.client.gui.GuiPageButtonList.GuiListEntry |
visitGui(GuiPropertyVisitor visitor,
int guiIdentifier)
Accept a GUI visitor for the property.
|
java.lang.String |
visitNameFormatter(FormattedPropertyVisitor visitor,
net.minecraft.util.ResourceLocation registryKey)
Accept a name formatter visitor for the property.
|
equals, getValue, hashCode, setValuepublic ScreenProperty(ScreenProperty.PropertyScreenCreator value)
value - The screen creator.public java.lang.String getType()
GuiPropertygetType in class GuiProperty<ScreenProperty.PropertyScreenCreator>public net.minecraft.client.gui.GuiPageButtonList.GuiListEntry visitGui(GuiPropertyVisitor visitor, int guiIdentifier)
GuiPropertyvisitGui in class GuiProperty<ScreenProperty.PropertyScreenCreator>visitor - 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)
GuiPropertyvisitEntryValue in class GuiProperty<ScreenProperty.PropertyScreenCreator>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(FormattedPropertyVisitor visitor, net.minecraft.util.ResourceLocation registryKey)
GuiPropertyvisitNameFormatter in class GuiProperty<ScreenProperty.PropertyScreenCreator>visitor - The property visitor.registryKey - The registry key associated with this property.public java.lang.String getFormatter()
GuiPropertygetFormatter in class GuiProperty<ScreenProperty.PropertyScreenCreator>