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

    • ENABLED

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

      public static final 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

      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
      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

      private final Text 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

      private ResourcePackPolicy(String name)
      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

      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
      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;