Enum CopyNbt.Action

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CopyNbt.Action>
    Enclosing class:
    CopyNbt

    public static enum CopyNbt.Action
    extends java.lang.Enum<CopyNbt.Action>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      APPEND  
      MERGE  
      REPLACE  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Action​(java.lang.String p_i50670_3_)  
    • Field Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • Action

        private Action​(java.lang.String p_i50670_3_)
    • Method Detail

      • values

        public static CopyNbt.Action[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CopyNbt.Action c : CopyNbt.Action.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CopyNbt.Action valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • merge

        public abstract void merge​(INBT p_216227_1_,
                                   NBTPathArgument.NBTPath p_216227_2_,
                                   java.util.List<INBT> p_216227_3_)
                            throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getByName

        public static CopyNbt.Action getByName​(java.lang.String p_216229_0_)