Package net.minecraft

Record Class GameVersion.Impl

java.lang.Object
java.lang.Record
net.minecraft.GameVersion.Impl
Record Components:
id -
name -
dataVersion -
protocolVersion -
resourcePackVersion -
datapackVersion -
buildTime -
stable -
All Implemented Interfaces:
GameVersion
Enclosing interface:
GameVersion

public static record GameVersion.Impl(String id, String name, SaveVersion dataVersion, int protocolVersion, int resourcePackVersion, int datapackVersion, Date buildTime, boolean stable) extends Record implements GameVersion
Mappings:
Namespace Name
named net/minecraft/GameVersion$Impl
intermediary net/minecraft/class_6489$class_11175
official ah$a
named id
intermediary comp_4024
official a
named name
intermediary comp_4025
official b
named dataVersion
intermediary comp_4026
official c
named protocolVersion
intermediary comp_4027
official d
named resourcePackVersion
intermediary comp_4028
official e
named datapackVersion
intermediary comp_4029
official f
named buildTime
intermediary comp_4030
official g
named stable
intermediary comp_4031
official h
  • Field Details

    • id

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

      private final String name
      The field for the name record component.
    • dataVersion

      private final SaveVersion dataVersion
      The field for the dataVersion record component.
    • protocolVersion

      private final int protocolVersion
      The field for the protocolVersion record component.
    • resourcePackVersion

      private final int resourcePackVersion
      The field for the resourcePackVersion record component.
    • datapackVersion

      private final int datapackVersion
      The field for the datapackVersion record component.
    • buildTime

      private final Date buildTime
      The field for the buildTime record component.
    • stable

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

    • Impl

      public Impl(String string, String string2, SaveVersion saveVersion, int int2, int int3, int int4, Date date, boolean bool)
  • Method Details

    • packVersion

      public int packVersion(ResourceType type)
      Specified by:
      packVersion in interface GameVersion
      Mappings:
      Namespace Name Mixin selector
      named packVersion Lnet/minecraft/GameVersion;packVersion(Lnet/minecraft/resource/ResourceType;)I
      intermediary method_70592 Lnet/minecraft/class_6489;method_70592(Lnet/minecraft/class_3264;)I
      official a Lah;a(Lawd;)I
    • toString

      public final 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. 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 String id()
      Returns the value of the id record component.
      Specified by:
      id in interface GameVersion
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface GameVersion
      Returns:
      the value of the name record component
    • dataVersion

      public SaveVersion dataVersion()
      Returns the value of the dataVersion record component.
      Specified by:
      dataVersion in interface GameVersion
      Returns:
      the value of the dataVersion record component
    • protocolVersion

      public int protocolVersion()
      Returns the value of the protocolVersion record component.
      Specified by:
      protocolVersion in interface GameVersion
      Returns:
      the value of the protocolVersion record component
    • resourcePackVersion

      public int resourcePackVersion()
      Returns the value of the resourcePackVersion record component.
      Returns:
      the value of the resourcePackVersion record component
    • datapackVersion

      public int datapackVersion()
      Returns the value of the datapackVersion record component.
      Returns:
      the value of the datapackVersion record component
    • buildTime

      public Date buildTime()
      Returns the value of the buildTime record component.
      Specified by:
      buildTime in interface GameVersion
      Returns:
      the value of the buildTime record component
    • stable

      public boolean stable()
      Returns the value of the stable record component.
      Specified by:
      stable in interface GameVersion
      Returns:
      the value of the stable record component