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 - gmd$a
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ServerInfo.ResourcePackPolicy> private final Text
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
ENABLEDAlways 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- Lgmd$a;a:Lgmd$a;
 
- 
DISABLEDAlways 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- Lgmd$a;b:Lgmd$a;
 
- 
PROMPTOpens 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- Lgmd$a;c:Lgmd$a;
 
 
- 
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/client/network/ServerInfo$ResourcePackPolicy;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_56800- Lnet/minecraft/class_642$class_643;field_56800:Lcom/mojang/serialization/MapCodec;- official - d- Lgmd$a;d:Lcom/mojang/serialization/MapCodec;
 
- 
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 - e- Lgmd$a;e:Lxg;
 
 
- 
- 
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>- Lgmd$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- 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- Lgmd$a;a()Lxg;
 
 
-