Package net.minecraft.resource
Enum Class ResourcePackCompatibility
- All Implemented Interfaces:
Serializable
,Comparable<ResourcePackCompatibility>
,Constable
- Mappings:
Namespace Name official adh
intermediary net/minecraft/class_3281
named 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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourcePackCompatibility
from(int packVersion, ResourceType type)
static ResourcePackCompatibility
from(PackResourceMetadata metadata, ResourceType type)
boolean
static ResourcePackCompatibility
Returns the enum constant of this class with the specified name.static ResourcePackCompatibility[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOO_OLD
- Mappings:
Namespace Name Mixin selector official a
Ladh;a:Ladh;
intermediary field_14223
Lnet/minecraft/class_3281;field_14223:Lnet/minecraft/class_3281;
named TOO_OLD
Lnet/minecraft/resource/ResourcePackCompatibility;TOO_OLD:Lnet/minecraft/resource/ResourcePackCompatibility;
-
TOO_NEW
- Mappings:
Namespace Name Mixin selector official b
Ladh;b:Ladh;
intermediary field_14220
Lnet/minecraft/class_3281;field_14220:Lnet/minecraft/class_3281;
named TOO_NEW
Lnet/minecraft/resource/ResourcePackCompatibility;TOO_NEW:Lnet/minecraft/resource/ResourcePackCompatibility;
-
COMPATIBLE
- Mappings:
Namespace Name Mixin selector official c
Ladh;c:Ladh;
intermediary field_14224
Lnet/minecraft/class_3281;field_14224:Lnet/minecraft/class_3281;
named COMPATIBLE
Lnet/minecraft/resource/ResourcePackCompatibility;COMPATIBLE:Lnet/minecraft/resource/ResourcePackCompatibility;
-
-
Field Details
-
notification
- Mappings:
Namespace Name Mixin selector official d
Ladh;d:Los;
intermediary field_14219
Lnet/minecraft/class_3281;field_14219:Lnet/minecraft/class_2561;
named notification
Lnet/minecraft/resource/ResourcePackCompatibility;notification:Lnet/minecraft/text/Text;
-
confirmMessage
- Mappings:
Namespace Name Mixin selector official e
Ladh;e:Los;
intermediary field_14222
Lnet/minecraft/class_3281;field_14222:Lnet/minecraft/class_2561;
named confirmMessage
Lnet/minecraft/resource/ResourcePackCompatibility;confirmMessage:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
ResourcePackCompatibility
- Mappings:
Namespace Name Mixin selector official <init>
Ladh;<init>(Ljava/lang/String;ILjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_3281;<init>(Ljava/lang/String;ILjava/lang/String;)V
named <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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isCompatible
public boolean isCompatible()- Mappings:
Namespace Name Mixin selector official a
Ladh;a()Z
intermediary method_14437
Lnet/minecraft/class_3281;method_14437()Z
named isCompatible
Lnet/minecraft/resource/ResourcePackCompatibility;isCompatible()Z
-
from
- Mappings:
Namespace Name Mixin selector official a
Ladh;a(ILacw;)Ladh;
intermediary method_14436
Lnet/minecraft/class_3281;method_14436(ILnet/minecraft/class_3264;)Lnet/minecraft/class_3281;
named from
Lnet/minecraft/resource/ResourcePackCompatibility;from(ILnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/ResourcePackCompatibility;
-
from
- Mappings:
Namespace Name Mixin selector official a
Ladh;a(Lada;Lacw;)Ladh;
intermediary method_31439
Lnet/minecraft/class_3281;method_31439(Lnet/minecraft/class_3272;Lnet/minecraft/class_3264;)Lnet/minecraft/class_3281;
named from
Lnet/minecraft/resource/ResourcePackCompatibility;from(Lnet/minecraft/resource/metadata/PackResourceMetadata;Lnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/ResourcePackCompatibility;
-
getNotification
- Mappings:
Namespace Name Mixin selector official b
Ladh;b()Los;
intermediary method_14439
Lnet/minecraft/class_3281;method_14439()Lnet/minecraft/class_2561;
named getNotification
Lnet/minecraft/resource/ResourcePackCompatibility;getNotification()Lnet/minecraft/text/Text;
-
getConfirmMessage
- Mappings:
Namespace Name Mixin selector official c
Ladh;c()Los;
intermediary method_14438
Lnet/minecraft/class_3281;method_14438()Lnet/minecraft/class_2561;
named getConfirmMessage
Lnet/minecraft/resource/ResourcePackCompatibility;getConfirmMessage()Lnet/minecraft/text/Text;
-