Record Class VersionedIdentifier

java.lang.Object
java.lang.Record
net.minecraft.registry.VersionedIdentifier
Record Components:
namespace -
id -
version -

public record VersionedIdentifier(String namespace, String id, String version) extends Record
Mappings:
Namespace Name
official asy
intermediary net/minecraft/class_9226
named net/minecraft/registry/VersionedIdentifier
official c
intermediary comp_2336
named namespace
official d
intermediary comp_2337
named id
official e
intermediary comp_2338
named version
  • Field Details

    • namespace

      private final String namespace
      The field for the namespace record component.
    • id

      private final String id
      The field for the id record component.
    • version

      private final String version
      The field for the version record component.
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,VersionedIdentifier> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lasy;a:Lys;
      intermediary field_49035 Lnet/minecraft/class_9226;field_49035:Lnet/minecraft/class_9139;
      named PACKET_CODEC Lnet/minecraft/registry/VersionedIdentifier;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
    • DEFAULT_NAMESPACE

      public static final String DEFAULT_NAMESPACE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lasy;b:Ljava/lang/String;
      intermediary field_49036 Lnet/minecraft/class_9226;field_49036:Ljava/lang/String;
      named DEFAULT_NAMESPACE Lnet/minecraft/registry/VersionedIdentifier;DEFAULT_NAMESPACE:Ljava/lang/String;
  • Constructor Details

    • VersionedIdentifier

      public VersionedIdentifier(String string, String string2, String string3)
  • Method Details

    • createVanilla

      public static VersionedIdentifier createVanilla(String path)
      Mappings:
      Namespace Name Mixin selector
      official a Lasy;a(Ljava/lang/String;)Lasy;
      intermediary method_56932 Lnet/minecraft/class_9226;method_56932(Ljava/lang/String;)Lnet/minecraft/class_9226;
      named createVanilla Lnet/minecraft/registry/VersionedIdentifier;createVanilla(Ljava/lang/String;)Lnet/minecraft/registry/VersionedIdentifier;
    • isVanilla

      public boolean isVanilla()
      Mappings:
      Namespace Name Mixin selector
      official a Lasy;a()Z
      intermediary method_56931 Lnet/minecraft/class_9226;method_56931()Z
      named isVanilla Lnet/minecraft/registry/VersionedIdentifier;isVanilla()Z
    • 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
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • namespace

      public String namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component