Package com.lightning.northstar.data
Record Class Tags.Appender<T,R>
java.lang.Object
java.lang.Record
com.lightning.northstar.data.Tags.Appender<T,R>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Tags.Appender<T, R> net.minecraft.tags.TagBuilderbuilder()Returns the value of thebuilderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.tags.TagKey<T> key()Returns the value of thekeyrecord component.final Tags.Appender<T, R> tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Appender
public Appender(Tags<T, R> tags, net.minecraft.tags.TagKey<T> key, net.minecraft.tags.TagBuilder builder) Creates an instance of aAppenderrecord class.- Parameters:
tags- the value for thetagsrecord componentkey- the value for thekeyrecord componentbuilder- the value for thebuilderrecord component
-
-
Method Details
-
add
-
opt
-
add
-
opt
-
add
-
opt
-
add
-
opt
-
add
-
opt
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
builder
public net.minecraft.tags.TagBuilder builder()Returns the value of thebuilderrecord component.- Returns:
- the value of the
builderrecord component
-