Package net.minecraft.client.network
Enum Class ServerInfo.ResourcePackPolicy
java.lang.Object
java.lang.Enum<ServerInfo.ResourcePackPolicy>
net.minecraft.client.network.ServerInfo.ResourcePackPolicy
- All Implemented Interfaces:
Serializable
,Comparable<ServerInfo.ResourcePackPolicy>
,Constable
- Enclosing class:
- ServerInfo
@Environment(CLIENT)
public static enum ServerInfo.ResourcePackPolicy
extends Enum<ServerInfo.ResourcePackPolicy>
The policy of the client when this server sends a server
resource pack.
- See Also:
ServerInfo.getResourcePackPolicy()
- Mappings:
Namespace Name official ejm$a
intermediary net/minecraft/class_642$class_643
named net/minecraft/client/network/ServerInfo$ResourcePackPolicy
-
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 TypeMethodDescriptiongetName()
Returns the enum constant of this class with the specified name.static ServerInfo.ResourcePackPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENABLED
Always accepts the resource pack and starts downloading it.- Mappings:
Namespace Name Mixin selector official a
Lejm$a;a:Lejm$a;
intermediary field_3768
Lnet/minecraft/class_642$class_643;field_3768:Lnet/minecraft/class_642$class_643;
named ENABLED
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;ENABLED:Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;
-
DISABLED
Always rejects the resource pack.- Mappings:
Namespace Name Mixin selector official b
Lejm$a;b:Lejm$a;
intermediary field_3764
Lnet/minecraft/class_642$class_643;field_3764:Lnet/minecraft/class_642$class_643;
named DISABLED
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;DISABLED:Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;
-
PROMPT
Opens a screen on whether to always accept or reject resource packs from this server for the current pack or any pack in the future.- Mappings:
Namespace Name Mixin selector official c
Lejm$a;c:Lejm$a;
intermediary field_3767
Lnet/minecraft/class_642$class_643;field_3767:Lnet/minecraft/class_642$class_643;
named PROMPT
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;PROMPT:Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official d
Lejm$a;d:Los;
intermediary field_3765
Lnet/minecraft/class_642$class_643;field_3765:Lnet/minecraft/class_2561;
named name
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;name:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
ResourcePackPolicy
- Mappings:
Namespace Name Mixin selector official <init>
Lejm$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_642$class_643;<init>(Ljava/lang/String;ILjava/lang/String;)V
named <init>
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;<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
-
getName
- Mappings:
Namespace Name Mixin selector official a
Lejm$a;a()Los;
intermediary method_2997
Lnet/minecraft/class_642$class_643;method_2997()Lnet/minecraft/class_2561;
named getName
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;getName()Lnet/minecraft/text/Text;
-