Enum Class DataPackContents.EntryListCreationPolicy

java.lang.Object
java.lang.Enum<DataPackContents.EntryListCreationPolicy>
net.minecraft.server.DataPackContents.EntryListCreationPolicy
All Implemented Interfaces:
Serializable, Comparable<DataPackContents.EntryListCreationPolicy>, Constable
Enclosing class:
DataPackContents

private static enum DataPackContents.EntryListCreationPolicy extends Enum<DataPackContents.EntryListCreationPolicy>
A policy on how to handle a TagKey that does not resolve to an existing tag (unrecognized tag) in RegistryEntryLookup.getOptional(net.minecraft.registry.tag.TagKey).
Mappings:
Namespace Name
named net/minecraft/server/DataPackContents$EntryListCreationPolicy
intermediary net/minecraft/class_5350$class_7158
official alq$b
  • Enum Constant Details

    • CREATE_NEW

      public static final DataPackContents.EntryListCreationPolicy CREATE_NEW
      Creates a new RegistryEntryList, stores it and returns it.
      Mappings:
      Namespace Name Mixin selector
      named CREATE_NEW Lnet/minecraft/server/DataPackContents$EntryListCreationPolicy;CREATE_NEW:Lnet/minecraft/server/DataPackContents$EntryListCreationPolicy;
      intermediary field_37824 Lnet/minecraft/class_5350$class_7158;field_37824:Lnet/minecraft/class_5350$class_7158;
      official a Lalq$b;a:Lalq$b;
    • FAIL

      public static final DataPackContents.EntryListCreationPolicy FAIL
      Throws an exception.
      Mappings:
      Namespace Name Mixin selector
      named FAIL Lnet/minecraft/server/DataPackContents$EntryListCreationPolicy;FAIL:Lnet/minecraft/server/DataPackContents$EntryListCreationPolicy;
      intermediary field_37826 Lnet/minecraft/class_5350$class_7158;field_37826:Lnet/minecraft/class_5350$class_7158;
      official b Lalq$b;b:Lalq$b;
  • Constructor Details

    • EntryListCreationPolicy

      private EntryListCreationPolicy()
  • Method Details

    • values

      public static DataPackContents.EntryListCreationPolicy[] 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 DataPackContents.EntryListCreationPolicy 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