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:
- Mappings:
Namespace Name named net/minecraft/client/network/ServerInfo$ResourcePackPolicy
intermediary net/minecraft/class_642$class_643
official fyl$a
-
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 named ENABLED
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;ENABLED:Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;
intermediary field_3768
Lnet/minecraft/class_642$class_643;field_3768:Lnet/minecraft/class_642$class_643;
official a
Lfyl$a;a:Lfyl$a;
-
DISABLED
Always rejects the resource pack.- Mappings:
Namespace Name Mixin selector named DISABLED
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;DISABLED:Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;
intermediary field_3764
Lnet/minecraft/class_642$class_643;field_3764:Lnet/minecraft/class_642$class_643;
official b
Lfyl$a;b:Lfyl$a;
-
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 named PROMPT
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;PROMPT:Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;
intermediary field_3767
Lnet/minecraft/class_642$class_643;field_3767:Lnet/minecraft/class_642$class_643;
official c
Lfyl$a;c:Lfyl$a;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;name:Lnet/minecraft/text/Text;
intermediary field_3765
Lnet/minecraft/class_642$class_643;field_3765:Lnet/minecraft/class_2561;
official d
Lfyl$a;d:Lxp;
-
-
Constructor Details
-
ResourcePackPolicy
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;<init>(Ljava/lang/String;ILjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_642$class_643;<init>(Ljava/lang/String;ILjava/lang/String;)V
official <init>
Lfyl$a;<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 named getName
Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;getName()Lnet/minecraft/text/Text;
intermediary method_2997
Lnet/minecraft/class_642$class_643;method_2997()Lnet/minecraft/class_2561;
official a
Lfyl$a;a()Lxp;
-