Enum Class ServerResourcePackManager.DiscardReason

java.lang.Object
java.lang.Enum<ServerResourcePackManager.DiscardReason>
net.minecraft.client.resource.server.ServerResourcePackManager.DiscardReason
All Implemented Interfaces:
Serializable, Comparable<ServerResourcePackManager.DiscardReason>, Constable
Enclosing class:
ServerResourcePackManager

@Environment(CLIENT) private static enum ServerResourcePackManager.DiscardReason extends Enum<ServerResourcePackManager.DiscardReason>
Mappings:
Namespace Name
official ghg$d
intermediary net/minecraft/class_9044$class_9048
named net/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason
  • Enum Constant Details

    • DOWNLOAD_FAILED

      public static final ServerResourcePackManager.DiscardReason DOWNLOAD_FAILED
      Mappings:
      Namespace Name Mixin selector
      official a Lghg$d;a:Lghg$d;
      intermediary field_47651 Lnet/minecraft/class_9044$class_9048;field_47651:Lnet/minecraft/class_9044$class_9048;
      named DOWNLOAD_FAILED Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;DOWNLOAD_FAILED:Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;
    • ACTIVATION_FAILED

      public static final ServerResourcePackManager.DiscardReason ACTIVATION_FAILED
      Mappings:
      Namespace Name Mixin selector
      official b Lghg$d;b:Lghg$d;
      intermediary field_47652 Lnet/minecraft/class_9044$class_9048;field_47652:Lnet/minecraft/class_9044$class_9048;
      named ACTIVATION_FAILED Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;ACTIVATION_FAILED:Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;
    • DECLINED

      public static final ServerResourcePackManager.DiscardReason DECLINED
      Mappings:
      Namespace Name Mixin selector
      official c Lghg$d;c:Lghg$d;
      intermediary field_47653 Lnet/minecraft/class_9044$class_9048;field_47653:Lnet/minecraft/class_9044$class_9048;
      named DECLINED Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;DECLINED:Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;
    • DISCARDED

      public static final ServerResourcePackManager.DiscardReason DISCARDED
      Mappings:
      Namespace Name Mixin selector
      official d Lghg$d;d:Lghg$d;
      intermediary field_47654 Lnet/minecraft/class_9044$class_9048;field_47654:Lnet/minecraft/class_9044$class_9048;
      named DISCARDED Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;DISCARDED:Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;
    • SERVER_REMOVED

      public static final ServerResourcePackManager.DiscardReason SERVER_REMOVED
      Mappings:
      Namespace Name Mixin selector
      official e Lghg$d;e:Lghg$d;
      intermediary field_47655 Lnet/minecraft/class_9044$class_9048;field_47655:Lnet/minecraft/class_9044$class_9048;
      named SERVER_REMOVED Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;SERVER_REMOVED:Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;
    • SERVER_REPLACED

      public static final ServerResourcePackManager.DiscardReason SERVER_REPLACED
      Mappings:
      Namespace Name Mixin selector
      official f Lghg$d;f:Lghg$d;
      intermediary field_47656 Lnet/minecraft/class_9044$class_9048;field_47656:Lnet/minecraft/class_9044$class_9048;
      named SERVER_REPLACED Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;SERVER_REPLACED:Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;
  • Field Details

    • state

      Mappings:
      Namespace Name Mixin selector
      official g Lghg$d;g:Lghe$a;
      intermediary field_47657 Lnet/minecraft/class_9044$class_9048;field_47657:Lnet/minecraft/class_9039$class_9040;
      named state Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;state:Lnet/minecraft/client/resource/server/PackStateChangeCallback$FinishState;
  • Constructor Details

    • DiscardReason

      private DiscardReason(@Nullable PackStateChangeCallback.FinishState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lghg$d;<init>(Ljava/lang/String;ILghe$a;)V
      intermediary <init> Lnet/minecraft/class_9044$class_9048;<init>(Ljava/lang/String;ILnet/minecraft/class_9039$class_9040;)V
      named <init> Lnet/minecraft/client/resource/server/ServerResourcePackManager$DiscardReason;<init>(Ljava/lang/String;ILnet/minecraft/client/resource/server/PackStateChangeCallback$FinishState;)V
  • Method Details

    • values

      public static ServerResourcePackManager.DiscardReason[] 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 ServerResourcePackManager.DiscardReason 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