Package net.minecraft.resource
Record Class PackVersion.Format
java.lang.Object
java.lang.Record
net.minecraft.resource.PackVersion.Format
- Record Components:
min-max-format-supported-
- Enclosing class:
PackVersion
public static record PackVersion.Format(Optional<PackVersion> min, Optional<PackVersion> max, Optional<Integer> format, Optional<Range<Integer>> supported)
extends Record
- Mappings:
Namespace Name named net/minecraft/resource/PackVersion$Formatintermediary net/minecraft/class_11555$class_11556official azp$anamed minintermediary comp_4418official bnamed maxintermediary comp_4419official cnamed formatintermediary comp_4420official dnamed supportedintermediary comp_4421official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theformatrecord component.private final Optional<PackVersion> The field for themaxrecord component.private final Optional<PackVersion> The field for theminrecord component.static final com.mojang.serialization.MapCodec<PackVersion.Format> (package private) static final com.mojang.serialization.MapCodec<PackVersion.Format> The field for thesupportedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFormat(Optional<PackVersion> optional, Optional<PackVersion> optional2, Optional<Integer> optional3, Optional<Range<Integer>> optional4) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.intminMajor()static PackVersion.FormatofRange(Range<PackVersion> range, int lastOldPackVersion) Returns the value of thesupportedrecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.DataResult<Range<PackVersion>> validate(int lastOldPackVersion, boolean pack, boolean supportsOld, String packDescriptor, String supportedFormatsKey) private StringvalidateMainFormat(int min, int max) private com.mojang.serialization.DataResult<Range<PackVersion>> validateSupportedFormats(int lastOldPackVersion, boolean pack, String packDescriptor, String supportedFormatsKey) private com.mojang.serialization.DataResult<Range<PackVersion>> validateVersions(int lastOldPackVersion, boolean pack, boolean supportsOld, String packDescriptor, String supportedFormatsKey)
-
Field Details
-
min
The field for theminrecord component. -
max
The field for themaxrecord component. -
format
The field for theformatrecord component. -
supported
The field for thesupportedrecord component. -
PACK_CODEC
- Mappings:
Namespace Name Mixin selector named PACK_CODECLnet/minecraft/resource/PackVersion$Format;PACK_CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_61154Lnet/minecraft/class_11555$class_11556;field_61154:Lcom/mojang/serialization/MapCodec;official fLazp$a;f:Lcom/mojang/serialization/MapCodec;
-
OVERLAY_CODEC
- Mappings:
Namespace Name Mixin selector named OVERLAY_CODECLnet/minecraft/resource/PackVersion$Format;OVERLAY_CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_61153Lnet/minecraft/class_11555$class_11556;field_61153:Lcom/mojang/serialization/MapCodec;official aLazp$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Format
public Format(Optional<PackVersion> optional, Optional<PackVersion> optional2, Optional<Integer> optional3, Optional<Range<Integer>> optional4)
-
-
Method Details
-
ofRange
- Mappings:
Namespace Name Mixin selector named ofRangeLnet/minecraft/resource/PackVersion$Format;ofRange(Lnet/minecraft/util/dynamic/Range;I)Lnet/minecraft/resource/PackVersion$Format;intermediary method_72334Lnet/minecraft/class_11555$class_11556;method_72334(Lnet/minecraft/class_6497;I)Lnet/minecraft/class_11555$class_11556;official aLazp$a;a(Lbez;I)Lazp$a;
-
minMajor
public int minMajor()- Mappings:
Namespace Name Mixin selector named minMajorLnet/minecraft/resource/PackVersion$Format;minMajor()Iintermediary method_72330Lnet/minecraft/class_11555$class_11556;method_72330()Iofficial aLazp$a;a()I
-
validate
public com.mojang.serialization.DataResult<Range<PackVersion>> validate(int lastOldPackVersion, boolean pack, boolean supportsOld, String packDescriptor, String supportedFormatsKey) - Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/resource/PackVersion$Format;validate(IZZLjava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/DataResult;intermediary method_72333Lnet/minecraft/class_11555$class_11556;method_72333(IZZLjava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/DataResult;official aLazp$a;a(IZZLjava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
-
validateVersions
private com.mojang.serialization.DataResult<Range<PackVersion>> validateVersions(int lastOldPackVersion, boolean pack, boolean supportsOld, String packDescriptor, String supportedFormatsKey) - Mappings:
Namespace Name Mixin selector named validateVersionsLnet/minecraft/resource/PackVersion$Format;validateVersions(IZZLjava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/DataResult;intermediary method_72344Lnet/minecraft/class_11555$class_11556;method_72344(IZZLjava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/DataResult;official bLazp$a;b(IZZLjava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
-
validateSupportedFormats
private com.mojang.serialization.DataResult<Range<PackVersion>> validateSupportedFormats(int lastOldPackVersion, boolean pack, String packDescriptor, String supportedFormatsKey) - Mappings:
Namespace Name Mixin selector named validateSupportedFormatsLnet/minecraft/resource/PackVersion$Format;validateSupportedFormats(IZLjava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/DataResult;intermediary method_72332Lnet/minecraft/class_11555$class_11556;method_72332(IZLjava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/DataResult;official aLazp$a;a(IZLjava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
-
validateMainFormat
- Mappings:
Namespace Name Mixin selector named validateMainFormatLnet/minecraft/resource/PackVersion$Format;validateMainFormat(II)Ljava/lang/String;intermediary method_72331Lnet/minecraft/class_11555$class_11556;method_72331(II)Ljava/lang/String;official aLazp$a;a(II)Ljava/lang/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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
min
Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
supported
Returns the value of thesupportedrecord component.- Returns:
- the value of the
supportedrecord component
-