Uses of Record Class
net.minecraft.resource.PackVersion
Packages that use PackVersion
Package
Description
The base package for all Minecraft classes.
Provides resources to Minecraft, including resource access, provision, and reloading.
-
Uses of PackVersion in net.minecraft
Fields in net.minecraft declared as PackVersionModifier and TypeFieldDescriptionprivate final PackVersionGameVersion.Impl.datapackVersionThe field for thedatapackVersionrecord component.private final PackVersionGameVersion.Impl.resourcePackVersionThe field for theresourcePackVersionrecord component.Methods in net.minecraft that return PackVersionModifier and TypeMethodDescriptionGameVersion.Impl.datapackVersion()Returns the value of thedatapackVersionrecord component.GameVersion.Impl.packVersion(ResourceType type) GameVersion.packVersion(ResourceType type) GameVersion.Impl.resourcePackVersion()Returns the value of theresourcePackVersionrecord component.Constructors in net.minecraft with parameters of type PackVersionModifierConstructorDescriptionImpl(String string, String string2, SaveVersion saveVersion, int int2, PackVersion packVersion, PackVersion packVersion2, Date date, boolean bool) -
Uses of PackVersion in net.minecraft.resource
Fields in net.minecraft.resource with type parameters of type PackVersionModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PackVersion> PackVersion.ANY_CODECstatic final com.mojang.serialization.Codec<PackVersion> PackVersion.CODECprivate final Optional<PackVersion> PackVersion.Format.maxThe field for themaxrecord component.private final Optional<PackVersion> PackVersion.Format.minThe field for theminrecord component.Methods in net.minecraft.resource that return PackVersionModifier and TypeMethodDescriptionstatic PackVersionPackVersion.of(int major) static PackVersionPackVersion.of(int major, int minor) Methods in net.minecraft.resource that return types with arguments of type PackVersionModifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec<PackVersion> PackVersion.createCodec(int impliedMinorVersion) static com.mojang.serialization.MapCodec<Range<PackVersion>> PackVersion.createRangeCodec(ResourceType type) PackVersion.majorRange()PackVersion.Format.max()Returns the value of themaxrecord component.PackVersion.Format.min()Returns the value of theminrecord component.com.mojang.serialization.DataResult<Range<PackVersion>> PackVersion.Format.validate(int lastOldPackVersion, boolean pack, boolean supportsOld, String packDescriptor, String supportedFormatsKey) private com.mojang.serialization.DataResult<Range<PackVersion>> PackVersion.Format.validateSupportedFormats(int lastOldPackVersion, boolean pack, String packDescriptor, String supportedFormatsKey) private com.mojang.serialization.DataResult<Range<PackVersion>> PackVersion.Format.validateVersions(int lastOldPackVersion, boolean pack, boolean supportsOld, String packDescriptor, String supportedFormatsKey) Methods in net.minecraft.resource with parameters of type PackVersionModifier and TypeMethodDescriptionintPackVersion.compareTo(PackVersion packVersion) static ResourcePackCompatibilityResourcePackCompatibility.from(Range<PackVersion> range, PackVersion packVersion) ResourcePackProfile.loadMetadata(ResourcePackInfo info, ResourcePackProfile.PackFactory packFactory, PackVersion version, ResourceType type) Method parameters in net.minecraft.resource with type arguments of type PackVersionModifier and TypeMethodDescriptionstatic ResourcePackCompatibilityResourcePackCompatibility.from(Range<PackVersion> range, PackVersion packVersion) static PackVersion.FormatPackVersion.Format.ofRange(Range<PackVersion> range, int lastOldPackVersion) static <ResultType,HolderType extends PackVersion.FormatHolder>
com.mojang.serialization.DataResult<List<ResultType>> PackVersion.validate(List<HolderType> holders, int lastOldPackVersion, BiFunction<HolderType, Range<PackVersion>, ResultType> toResult) Constructor parameters in net.minecraft.resource with type arguments of type PackVersionModifierConstructorDescriptionFormat(Optional<PackVersion> optional, Optional<PackVersion> optional2, Optional<Integer> optional3, Optional<Range<Integer>> optional4) -
Uses of PackVersion in net.minecraft.resource.metadata
Fields in net.minecraft.resource.metadata with type parameters of type PackVersionModifier and TypeFieldDescriptionprivate final Range<PackVersion> PackOverlaysMetadata.Entry.formatThe field for theformatrecord component.private final Range<PackVersion> PackResourceMetadata.supportedFormatsThe field for thesupportedFormatsrecord component.Methods in net.minecraft.resource.metadata that return types with arguments of type PackVersionModifier and TypeMethodDescriptionPackOverlaysMetadata.Entry.format()Returns the value of theformatrecord component.PackResourceMetadata.supportedFormats()Returns the value of thesupportedFormatsrecord component.Methods in net.minecraft.resource.metadata with parameters of type PackVersionModifier and TypeMethodDescriptionPackOverlaysMetadata.getAppliedOverlays(PackVersion version) booleanPackOverlaysMetadata.Entry.isValid(PackVersion version) Constructor parameters in net.minecraft.resource.metadata with type arguments of type PackVersionModifierConstructorDescriptionEntry(Range<PackVersion> range, String string) PackResourceMetadata(Text description, Range<PackVersion> range)