Package org.geysermc.geyser.util
Record Class JavaCodecEntry
java.lang.Object
java.lang.Record
org.geysermc.geyser.util.JavaCodecEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.static Iterable<com.github.steveice10.opennbt.tag.builtin.CompoundTag>iterateAsTag(com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)Iterate over a Java Edition codec and return each entry as a CompoundTagtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaCodecEntry
public JavaCodecEntry()Creates an instance of aJavaCodecEntryrecord class.
-
-
Method Details
-
iterateAsTag
public static Iterable<com.github.steveice10.opennbt.tag.builtin.CompoundTag> iterateAsTag(com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)Iterate over a Java Edition codec and return each entry as a CompoundTag -
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.
-