Enum Class ItemMatch.Match

java.lang.Object
java.lang.Enum<ItemMatch.Match>
com.trevlar.menukit.api.element.ItemMatch.Match
All Implemented Interfaces:
Serializable, Comparable<ItemMatch.Match>, Constable, net.minecraft.util.StringRepresentable
Enclosing class:
ItemMatch

public static enum ItemMatch.Match extends Enum<ItemMatch.Match> implements net.minecraft.util.StringRepresentable
How a stack is compared with a rule's.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>

    Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable

    net.minecraft.util.StringRepresentable.EnumCodec<E>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The same item and at least the components set; none set means any variant.
    The same item, count and components; no components set means a plain item.
    The kind of item only.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<ItemMatch.Match>
    Saved as "item", "exact", "contains".

    Fields inherited from interface net.minecraft.util.StringRepresentable

    PRE_BUILT_MAP_THRESHOLD
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ITEM

      public static final ItemMatch.Match ITEM
      The kind of item only.
    • EXACT

      public static final ItemMatch.Match EXACT
      The same item, count and components; no components set means a plain item.
    • CONTAINS

      public static final ItemMatch.Match CONTAINS
      The same item and at least the components set; none set means any variant.
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ItemMatch.Match> CODEC
      Saved as "item", "exact", "contains".
  • Method Details

    • values

      public static ItemMatch.Match[] 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 ItemMatch.Match 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
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable