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
named net/minecraft/registry/VersionedIdentifier
intermediary net/minecraft/class_9226
official atl
named namespace
intermediary comp_2336
official c
named id
intermediary comp_2337
official d
named version
intermediary comp_2338
official e
  • 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
      named PACKET_CODEC Lnet/minecraft/registry/VersionedIdentifier;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49035 Lnet/minecraft/class_9226;field_49035:Lnet/minecraft/class_9139;
      official a Latl;a:Lyx;
    • DEFAULT_NAMESPACE

      public static final String DEFAULT_NAMESPACE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_NAMESPACE Lnet/minecraft/registry/VersionedIdentifier;DEFAULT_NAMESPACE:Ljava/lang/String;
      intermediary field_49036 Lnet/minecraft/class_9226;field_49036:Ljava/lang/String;
      official b Latl;b: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
      named createVanilla Lnet/minecraft/registry/VersionedIdentifier;createVanilla(Ljava/lang/String;)Lnet/minecraft/registry/VersionedIdentifier;
      intermediary method_56932 Lnet/minecraft/class_9226;method_56932(Ljava/lang/String;)Lnet/minecraft/class_9226;
      official a Latl;a(Ljava/lang/String;)Latl;
    • isVanilla

      public boolean isVanilla()
      Mappings:
      Namespace Name Mixin selector
      named isVanilla Lnet/minecraft/registry/VersionedIdentifier;isVanilla()Z
      intermediary method_56931 Lnet/minecraft/class_9226;method_56931()Z
      official a Latl;a()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