Record Class MinecraftVersion
java.lang.Object
java.lang.Record
kr.toxicity.hud.api.version.MinecraftVersion
- Record Components:
first- titlesecond- main updatethird- minor update
- All Implemented Interfaces:
Comparable<MinecraftVersion>
public record MinecraftVersion(int first, int second, int third)
extends Record
implements Comparable<MinecraftVersion>
Minecraft version.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MinecraftVersionLateststatic final MinecraftVersion1.21static final MinecraftVersion1.21.1static final MinecraftVersion1.21.10static final MinecraftVersion1.21.11static final MinecraftVersion1.21.2static final MinecraftVersion1.21.3static final MinecraftVersion1.21.4static final MinecraftVersion1.21.5static final MinecraftVersion1.21.6static final MinecraftVersion1.21.7static final MinecraftVersion1.21.8static final MinecraftVersion1.21.9static final MinecraftVersion26.1static final MinecraftVersion26.1.1static final MinecraftVersion26.1.2 -
Constructor Summary
ConstructorsConstructorDescriptionMinecraftVersion(int first, int second, int third) Creates an instance of aMinecraftVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(@NotNull MinecraftVersion o) final booleanIndicates whether some other object is "equal to" this one.intfirst()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.static @NotNull MinecraftVersionParses version from stringintsecond()Returns the value of thesecondrecord component.intthird()Returns the value of thethirdrecord component.@NotNull StringtoString()Returns a string representation of this record class.
-
Field Details
-
V26_1_2
26.1.2 -
V26_1_1
26.1.1 -
V26_1
26.1 -
V1_21_11
1.21.11 -
V1_21_10
1.21.10 -
V1_21_9
1.21.9 -
V1_21_8
1.21.8 -
V1_21_7
1.21.7 -
V1_21_6
1.21.6 -
V1_21_5
1.21.5 -
V1_21_4
1.21.4 -
V1_21_3
1.21.3 -
V1_21_2
1.21.2 -
V1_21_1
1.21.1 -
V1_21
1.21 -
LATEST
Latest
-
-
Constructor Details
-
MinecraftVersion
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<MinecraftVersion>
-
of
Parses version from string- Parameters:
version- version like "26.1.2"
-
toString
-
hashCode
-
equals
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 thecomparemethod from their corresponding wrapper classes. -
first
-
second
-
third
-