Record Class NbtSuggestions.FieldDef
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.command.suggest.nbt.NbtSuggestions.FieldDef
- Enclosing class:
NbtSuggestions
public static record NbtSuggestions.FieldDef(String name, NbtSuggestions.NbtType type, String subtext, @Nullable List<NbtSuggestions.FieldDef> children, NbtSuggestions.Subtype subtype, @Nullable NbtSuggestions.NbtType elementType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFieldDef(String name, NbtSuggestions.NbtType type, String subtext) FieldDef(String name, NbtSuggestions.NbtType type, String subtext, NbtSuggestions.NbtType elementType) FieldDef(String name, NbtSuggestions.NbtType type, String subtext, NbtSuggestions.Subtype subtype) FieldDef(String name, NbtSuggestions.NbtType type, String subtext, @Nullable List<NbtSuggestions.FieldDef> children) FieldDef(String name, NbtSuggestions.NbtType type, String subtext, @Nullable List<NbtSuggestions.FieldDef> children, NbtSuggestions.Subtype subtype, @Nullable NbtSuggestions.NbtType elementType) Creates an instance of aFieldDefrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable List<NbtSuggestions.FieldDef> children()Returns the value of thechildrenrecord component.@Nullable NbtSuggestions.NbtTypeReturns the value of theelementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.subtext()Returns the value of thesubtextrecord component.subtype()Returns the value of thesubtyperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
FieldDef
-
FieldDef
public FieldDef(String name, NbtSuggestions.NbtType type, String subtext, @Nullable @Nullable List<NbtSuggestions.FieldDef> children) -
FieldDef
public FieldDef(String name, NbtSuggestions.NbtType type, String subtext, NbtSuggestions.Subtype subtype) -
FieldDef
public FieldDef(String name, NbtSuggestions.NbtType type, String subtext, NbtSuggestions.NbtType elementType) -
FieldDef
public FieldDef(String name, NbtSuggestions.NbtType type, String subtext, @Nullable @Nullable List<NbtSuggestions.FieldDef> children, NbtSuggestions.Subtype subtype, @Nullable @Nullable NbtSuggestions.NbtType elementType) Creates an instance of aFieldDefrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentsubtext- the value for thesubtextrecord componentchildren- the value for thechildrenrecord componentsubtype- the value for thesubtyperecord componentelementType- the value for theelementTyperecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
subtext
Returns the value of thesubtextrecord component.- Returns:
- the value of the
subtextrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-
subtype
Returns the value of thesubtyperecord component.- Returns:
- the value of the
subtyperecord component
-
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-