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 atw
named namespace
intermediary comp_2336
official c
named id
intermediary comp_2337
official d
named version
intermediary comp_2338
official e
  • Field Details Link icon

    • namespace Link icon

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

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

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

      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 Latw;a:Lyn;
    • DEFAULT_NAMESPACE Link icon

      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 Latw;b:Ljava/lang/String;
  • Constructor Details Link icon

    • VersionedIdentifier Link icon

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

    • createVanilla Link icon

      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 Latw;a(Ljava/lang/String;)Latw;
    • isVanilla Link icon

      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 Latw;a()Z
    • toString Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

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