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 gfy$a
  • Enum Constant Details

    • ENABLED

      public static final ServerInfo.ResourcePackPolicy 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 Lgfy$a;a:Lgfy$a;
    • DISABLED

      public static final ServerInfo.ResourcePackPolicy 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 Lgfy$a;b:Lgfy$a;
    • PROMPT

      public static final 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
      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 Lgfy$a;c:Lgfy$a;
  • Field Details

    • name

      private final Text 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 Lgfy$a;d:Lxv;
  • Constructor Details

    • ResourcePackPolicy

      private ResourcePackPolicy(String name)
      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> Lgfy$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static ServerInfo.ResourcePackPolicy[] 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

      public static ServerInfo.ResourcePackPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public Text 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 Lgfy$a;a()Lxv;