public final class EntityEntryProperty extends RegistryProperty
| Constructor and Description |
|---|
EntityEntryProperty(net.minecraft.util.ResourceLocation value)
Constructs a new EntityEntryProperty with an initial entity entry, storing the entity entry registry name,
with default predicate not filtering any Forge registry entries when populating
GuiScreenCustomizeRegistry list. |
EntityEntryProperty(net.minecraft.util.ResourceLocation value,
java.util.function.Predicate<net.minecraft.util.ResourceLocation> filter)
Constructs a new EntityEntryProperty with an initial entity entry, storing the entity entry registry name,
and a predicate used to filter Forge registry entries when populating
GuiScreenCustomizeRegistry list. |
| 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 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.
|
getFiltergetFormatterpublic EntityEntryProperty(net.minecraft.util.ResourceLocation value)
GuiScreenCustomizeRegistry list.value - The initial entity entry registry name value.public EntityEntryProperty(net.minecraft.util.ResourceLocation value,
java.util.function.Predicate<net.minecraft.util.ResourceLocation> filter)
GuiScreenCustomizeRegistry list.value - The initial entity entry registry name value.filter - The predicate used to filter the Forge Registry collection values.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.public java.lang.String visitNameFormatter(PropertyVisitor visitor)
PropertyvisitNameFormatter in class StringPropertyvisitor - The property visitor.