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, PackVersion resourcePackVersion, PackVersion datapackVersion, Date buildTime, boolean stable)
extends Record
implements GameVersion
- Mappings:
Namespace Name named net/minecraft/GameVersion$Implintermediary net/minecraft/class_6489$class_11175official ah$anamed idintermediary comp_4024official anamed nameintermediary comp_4025official bnamed dataVersionintermediary comp_4026official cnamed protocolVersionintermediary comp_4027official dnamed resourcePackVersionintermediary comp_4028official enamed datapackVersionintermediary comp_4029official fnamed buildTimeintermediary comp_4030official gnamed stableintermediary comp_4031official h
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.GameVersion
GameVersion.Impl -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DateThe field for thebuildTimerecord component.private final PackVersionThe field for thedatapackVersionrecord component.private final SaveVersionThe field for thedataVersionrecord component.private final StringThe field for theidrecord component.private final StringThe field for thenamerecord component.private final intThe field for theprotocolVersionrecord component.private final PackVersionThe field for theresourcePackVersionrecord component.private final booleanThe field for thestablerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionImpl(String string, String string2, SaveVersion saveVersion, int int2, PackVersion packVersion, PackVersion packVersion2, Date date, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuildTimerecord component.Returns the value of thedatapackVersionrecord component.Returns the value of thedataVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.packVersion(ResourceType type) intReturns the value of theprotocolVersionrecord component.Returns the value of theresourcePackVersionrecord component.booleanstable()Returns the value of thestablerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
name
The field for thenamerecord component. -
dataVersion
The field for thedataVersionrecord component. -
protocolVersion
private final int protocolVersionThe field for theprotocolVersionrecord component. -
resourcePackVersion
The field for theresourcePackVersionrecord component. -
datapackVersion
The field for thedatapackVersionrecord component. -
buildTime
The field for thebuildTimerecord component. -
stable
private final boolean stableThe field for thestablerecord component.
-
-
Constructor Details
-
Impl
public Impl(String string, String string2, SaveVersion saveVersion, int int2, PackVersion packVersion, PackVersion packVersion2, Date date, boolean bool)
-
-
Method Details
-
packVersion
- Specified by:
packVersionin interfaceGameVersion- Mappings:
Namespace Name Mixin selector named packVersionLnet/minecraft/GameVersion;packVersion(Lnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/PackVersion;intermediary method_70592Lnet/minecraft/class_6489;method_70592(Lnet/minecraft/class_3264;)Lnet/minecraft/class_11555;official aLah;a(Lazd;)Lazp;
-
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 theidrecord component.- Specified by:
idin interfaceGameVersion- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceGameVersion- Returns:
- the value of the
namerecord component
-
dataVersion
Returns the value of thedataVersionrecord component.- Specified by:
dataVersionin interfaceGameVersion- Returns:
- the value of the
dataVersionrecord component
-
protocolVersion
public int protocolVersion()Returns the value of theprotocolVersionrecord component.- Specified by:
protocolVersionin interfaceGameVersion- Returns:
- the value of the
protocolVersionrecord component
-
resourcePackVersion
Returns the value of theresourcePackVersionrecord component.- Returns:
- the value of the
resourcePackVersionrecord component
-
datapackVersion
Returns the value of thedatapackVersionrecord component.- Returns:
- the value of the
datapackVersionrecord component
-
buildTime
Returns the value of thebuildTimerecord component.- Specified by:
buildTimein interfaceGameVersion- Returns:
- the value of the
buildTimerecord component
-
stable
public boolean stable()Returns the value of thestablerecord component.- Specified by:
stablein interfaceGameVersion- Returns:
- the value of the
stablerecord component
-