Record Class StringTemplate
java.lang.Object
java.lang.Record
net.minecraft.commands.functions.StringTemplate
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStringTemplate(List<String> segments, List<String> variables) Creates an instance of aStringTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static StringTemplatefromString(String input) final inthashCode()Returns a hash code value for this object.static booleanisValidVariableName(String variable) segments()Returns the value of thesegmentsrecord component.substitute(List<String> arguments) final StringtoString()Returns a string representation of this record class.Returns the value of thevariablesrecord component.
-
Field Details
-
segments
-
variables
-
-
Constructor Details
-
StringTemplate
-
-
Method Details
-
fromString
-
isValidVariableName
-
substitute
-
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). -
segments
-
variables
-