Record Class Codecs.TagEntryId

java.lang.Object
java.lang.Record
net.minecraft.util.dynamic.Codecs.TagEntryId
Record Components:
id -
tag -
Enclosing class:
Codecs

public static record Codecs.TagEntryId(Identifier id, boolean tag) extends Record
Mappings:
Namespace Name
official aky$d
intermediary net/minecraft/class_5699$class_7476
named net/minecraft/util/dynamic/Codecs$TagEntryId
official a
intermediary comp_813
named id
official b
intermediary comp_814
named tag
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Identifier
    The field for the id record component.
    private final boolean
    The field for the tag record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TagEntryId(Identifier identifier, boolean bool)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private String
     
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    id()
    Returns the value of the id record component.
    boolean
    tag()
    Returns the value of the tag record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      private final Identifier id
      The field for the id record component.
    • tag

      private final boolean tag
      The field for the tag record component.
  • Constructor Details

    • TagEntryId

      public TagEntryId(Identifier identifier, boolean bool)
  • Method Details

    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • asString

      private String asString()
      Mappings:
      Namespace Name Mixin selector
      official c Laky$d;c()Ljava/lang/String;
      intermediary method_43963 Lnet/minecraft/class_5699$class_7476;method_43963()Ljava/lang/String;
      named asString Lnet/minecraft/util/dynamic/Codecs$TagEntryId;asString()Ljava/lang/String;
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public Identifier id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • tag

      public boolean tag()
      Returns the value of the tag record component.
      Returns:
      the value of the tag record component