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
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.GameVersion
GameVersion.Impl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Date
The field for thebuildTime
record component.private final int
The field for thedatapackVersion
record component.private final SaveVersion
The field for thedataVersion
record component.private final String
The field for theid
record component.private final String
The field for thename
record component.private final int
The field for theprotocolVersion
record component.private final int
The field for theresourcePackVersion
record component.private final boolean
The field for thestable
record component. -
Constructor Summary
ConstructorsConstructorDescriptionImpl
(String string, String string2, SaveVersion saveVersion, int int2, int int3, int int4, Date date, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuildTime
record component.int
Returns the value of thedatapackVersion
record component.Returns the value of thedataVersion
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.name()
Returns the value of thename
record component.int
packVersion
(ResourceType type) int
Returns the value of theprotocolVersion
record component.int
Returns the value of theresourcePackVersion
record component.boolean
stable()
Returns the value of thestable
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component. -
name
The field for thename
record component. -
dataVersion
The field for thedataVersion
record component. -
protocolVersion
private final int protocolVersionThe field for theprotocolVersion
record component. -
resourcePackVersion
private final int resourcePackVersionThe field for theresourcePackVersion
record component. -
datapackVersion
private final int datapackVersionThe field for thedatapackVersion
record component. -
buildTime
The field for thebuildTime
record component. -
stable
private final boolean stableThe field for thestable
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
- Specified by:
packVersion
in interfaceGameVersion
- 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
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
Returns the value of theid
record component.- Specified by:
id
in interfaceGameVersion
- Returns:
- the value of the
id
record component
-
name
Returns the value of thename
record component.- Specified by:
name
in interfaceGameVersion
- Returns:
- the value of the
name
record component
-
dataVersion
Returns the value of thedataVersion
record component.- Specified by:
dataVersion
in interfaceGameVersion
- Returns:
- the value of the
dataVersion
record component
-
protocolVersion
public int protocolVersion()Returns the value of theprotocolVersion
record component.- Specified by:
protocolVersion
in interfaceGameVersion
- Returns:
- the value of the
protocolVersion
record component
-
resourcePackVersion
public int resourcePackVersion()Returns the value of theresourcePackVersion
record component.- Returns:
- the value of the
resourcePackVersion
record component
-
datapackVersion
public int datapackVersion()Returns the value of thedatapackVersion
record component.- Returns:
- the value of the
datapackVersion
record component
-
buildTime
Returns the value of thebuildTime
record component.- Specified by:
buildTime
in interfaceGameVersion
- Returns:
- the value of the
buildTime
record component
-
stable
public boolean stable()Returns the value of thestable
record component.- Specified by:
stable
in interfaceGameVersion
- Returns:
- the value of the
stable
record component
-