Enum Class ListOperation.Mode

java.lang.Object
java.lang.Enum<ListOperation.Mode>
net.minecraft.util.collection.ListOperation.Mode
All Implemented Interfaces:
Serializable, Comparable<ListOperation.Mode>, Constable, StringIdentifiable
Enclosing interface:
ListOperation

public static enum ListOperation.Mode extends Enum<ListOperation.Mode> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/util/collection/ListOperation$Mode
intermediary net/minecraft/class_9368$class_9373
official esi$f
  • Enum Constant Details

    • REPLACE_ALL

      public static final ListOperation.Mode REPLACE_ALL
      Mappings:
      Namespace Name Mixin selector
      named REPLACE_ALL Lnet/minecraft/util/collection/ListOperation$Mode;REPLACE_ALL:Lnet/minecraft/util/collection/ListOperation$Mode;
      intermediary field_49856 Lnet/minecraft/class_9368$class_9373;field_49856:Lnet/minecraft/class_9368$class_9373;
      official a Lesi$f;a:Lesi$f;
    • REPLACE_SECTION

      public static final ListOperation.Mode REPLACE_SECTION
      Mappings:
      Namespace Name Mixin selector
      named REPLACE_SECTION Lnet/minecraft/util/collection/ListOperation$Mode;REPLACE_SECTION:Lnet/minecraft/util/collection/ListOperation$Mode;
      intermediary field_49857 Lnet/minecraft/class_9368$class_9373;field_49857:Lnet/minecraft/class_9368$class_9373;
      official b Lesi$f;b:Lesi$f;
    • INSERT

      public static final ListOperation.Mode INSERT
      Mappings:
      Namespace Name Mixin selector
      named INSERT Lnet/minecraft/util/collection/ListOperation$Mode;INSERT:Lnet/minecraft/util/collection/ListOperation$Mode;
      intermediary field_49858 Lnet/minecraft/class_9368$class_9373;field_49858:Lnet/minecraft/class_9368$class_9373;
      official c Lesi$f;c:Lesi$f;
    • APPEND

      public static final ListOperation.Mode APPEND
      Mappings:
      Namespace Name Mixin selector
      named APPEND Lnet/minecraft/util/collection/ListOperation$Mode;APPEND:Lnet/minecraft/util/collection/ListOperation$Mode;
      intermediary field_49859 Lnet/minecraft/class_9368$class_9373;field_49859:Lnet/minecraft/class_9368$class_9373;
      official d Lesi$f;d:Lesi$f;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ListOperation.Mode> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/collection/ListOperation$Mode;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49860 Lnet/minecraft/class_9368$class_9373;field_49860:Lcom/mojang/serialization/Codec;
      official e Lesi$f;e:Lcom/mojang/serialization/Codec;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/util/collection/ListOperation$Mode;id:Ljava/lang/String;
      intermediary field_49862 Lnet/minecraft/class_9368$class_9373;field_49862:Ljava/lang/String;
      official f Lesi$f;f:Ljava/lang/String;
    • codec

      final com.mojang.serialization.MapCodec<? extends ListOperation> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/util/collection/ListOperation$Mode;codec:Lcom/mojang/serialization/MapCodec;
      intermediary field_49863 Lnet/minecraft/class_9368$class_9373;field_49863:Lcom/mojang/serialization/MapCodec;
      official g Lesi$f;g:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • Mode

      private Mode(String id, com.mojang.serialization.MapCodec<? extends ListOperation> codec)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/collection/ListOperation$Mode;<init>(Ljava/lang/String;ILjava/lang/String;Lcom/mojang/serialization/MapCodec;)V
      intermediary <init> Lnet/minecraft/class_9368$class_9373;<init>(Ljava/lang/String;ILjava/lang/String;Lcom/mojang/serialization/MapCodec;)V
      official <init> Lesi$f;<init>(Ljava/lang/String;ILjava/lang/String;Lcom/mojang/serialization/MapCodec;)V
  • Method Details

    • values

      public static ListOperation.Mode[] 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 ListOperation.Mode 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
    • getCodec

      public com.mojang.serialization.MapCodec<? extends ListOperation> getCodec()
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/util/collection/ListOperation$Mode;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_58197 Lnet/minecraft/class_9368$class_9373;method_58197()Lcom/mojang/serialization/MapCodec;
      official a Lesi$f;a()Lcom/mojang/serialization/MapCodec;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lazc;c()Ljava/lang/String;