Package net.minecraft.resource
Enum ResourcePackCompatibility
- All Implemented Interfaces:
Serializable,Comparable<ResourcePackCompatibility>,java.lang.constant.Constable
public enum ResourcePackCompatibility extends Enum<ResourcePackCompatibility>
- Mappings:
Namespace Name official aclintermediary net/minecraft/class_3281named net/minecraft/resource/ResourcePackCompatibility
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description COMPATIBLETOO_NEWTOO_OLD -
Field Summary
Fields Modifier and Type Field Description private TextconfirmMessageprivate Textnotification -
Constructor Summary
Constructors Modifier Constructor Description privateResourcePackCompatibility(String translationSuffix) -
Method Summary
Modifier and Type Method Description static ResourcePackCompatibilityfrom(int packVersion, ResourceType type)static ResourcePackCompatibilityfrom(PackResourceMetadata metadata, ResourceType type)TextgetConfirmMessage()TextgetNotification()booleanisCompatible()static ResourcePackCompatibilityvalueOf(String name)Returns the enum constant of this type with the specified name.static ResourcePackCompatibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TOO_OLD
- Mappings:
Namespace Name Mixin selector official aLacl;a:Lacl;intermediary field_14223Lnet/minecraft/class_3281;field_14223:Lnet/minecraft/class_3281;named TOO_OLDLnet/minecraft/resource/ResourcePackCompatibility;TOO_OLD:Lnet/minecraft/resource/ResourcePackCompatibility;
-
TOO_NEW
- Mappings:
Namespace Name Mixin selector official bLacl;b:Lacl;intermediary field_14220Lnet/minecraft/class_3281;field_14220:Lnet/minecraft/class_3281;named TOO_NEWLnet/minecraft/resource/ResourcePackCompatibility;TOO_NEW:Lnet/minecraft/resource/ResourcePackCompatibility;
-
COMPATIBLE
- Mappings:
Namespace Name Mixin selector official cLacl;c:Lacl;intermediary field_14224Lnet/minecraft/class_3281;field_14224:Lnet/minecraft/class_3281;named COMPATIBLELnet/minecraft/resource/ResourcePackCompatibility;COMPATIBLE:Lnet/minecraft/resource/ResourcePackCompatibility;
-
-
Field Details
-
notification
- Mappings:
Namespace Name Mixin selector official dLacl;d:Loi;intermediary field_14219Lnet/minecraft/class_3281;field_14219:Lnet/minecraft/class_2561;named notificationLnet/minecraft/resource/ResourcePackCompatibility;notification:Lnet/minecraft/text/Text;
-
confirmMessage
- Mappings:
Namespace Name Mixin selector official eLacl;e:Loi;intermediary field_14222Lnet/minecraft/class_3281;field_14222:Lnet/minecraft/class_2561;named confirmMessageLnet/minecraft/resource/ResourcePackCompatibility;confirmMessage:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
ResourcePackCompatibility
- Mappings:
Namespace Name Mixin selector official <init>Lacl;<init>(Ljava/lang/String;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_3281;<init>(Ljava/lang/String;ILjava/lang/String;)Vnamed <init>Lnet/minecraft/resource/ResourcePackCompatibility;<init>(Ljava/lang/String;ILjava/lang/String;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isCompatible
public boolean isCompatible()- Mappings:
Namespace Name Mixin selector official aLacl;a()Zintermediary method_14437Lnet/minecraft/class_3281;method_14437()Znamed isCompatibleLnet/minecraft/resource/ResourcePackCompatibility;isCompatible()Z
-
from
- Mappings:
Namespace Name Mixin selector official aLacl;a(ILaca;)Lacl;intermediary method_14436Lnet/minecraft/class_3281;method_14436(ILnet/minecraft/class_3264;)Lnet/minecraft/class_3281;named fromLnet/minecraft/resource/ResourcePackCompatibility;from(ILnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/ResourcePackCompatibility;
-
from
- Mappings:
Namespace Name Mixin selector official aLacl;a(Lace;Laca;)Lacl;intermediary method_31439Lnet/minecraft/class_3281;method_31439(Lnet/minecraft/class_3272;Lnet/minecraft/class_3264;)Lnet/minecraft/class_3281;named fromLnet/minecraft/resource/ResourcePackCompatibility;from(Lnet/minecraft/resource/metadata/PackResourceMetadata;Lnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/ResourcePackCompatibility;
-
getNotification
- Mappings:
Namespace Name Mixin selector official bLacl;b()Loi;intermediary method_14439Lnet/minecraft/class_3281;method_14439()Lnet/minecraft/class_2561;named getNotificationLnet/minecraft/resource/ResourcePackCompatibility;getNotification()Lnet/minecraft/text/Text;
-
getConfirmMessage
- Mappings:
Namespace Name Mixin selector official cLacl;c()Loi;intermediary method_14438Lnet/minecraft/class_3281;method_14438()Lnet/minecraft/class_2561;named getConfirmMessageLnet/minecraft/resource/ResourcePackCompatibility;getConfirmMessage()Lnet/minecraft/text/Text;
-