Interface LocaleItemCheck<T>

All Superinterfaces:
Identifiable, ItemCheck<T>
All Known Implementing Classes:
PDCCheck

public interface LocaleItemCheck<T> extends ItemCheck<T>
LocaleItemCheck is used to check the locale item specifically, and is the priority check in platform checks.
Since:
0.2.0.0
Author:
creatorfromhell
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    applies(T original, T check)
    Checks if the given LocaleItemCheck applies based on the original item and the item to check.
    default boolean
     
    boolean
    check(T original, T check)
     

    Methods inherited from interface net.tnemc.item.platform.Identifiable

    identifier

    Methods inherited from interface net.tnemc.item.platform.check.ItemCheck

    applies, enabled, skipRest
  • Method Details

    • applies

      boolean applies(T original, T check)
      Checks if the given LocaleItemCheck applies based on the original item and the item to check.
      Parameters:
      original - the original item
      check - the item to check
      Returns:
      true if the LocaleItemCheck applies, false otherwise
      Since:
      0.2.0.0, 0.2.0.0
    • check

      boolean check(T original, T check)
      Parameters:
      original - the original stack
      check - the stack to use for the check
      Returns:
      True if the check passes, otherwise false.
      Since:
      0.2.0.0, 0.2.0.0
    • check

      default boolean check(AbstractItemStack<T> original, AbstractItemStack<T> check)
      Specified by:
      check in interface ItemCheck<T>
      Parameters:
      original - the original stack
      check - the stack to use for the check
      Returns:
      True if the check passes, otherwise false.
      Since:
      0.2.0.0, 0.2.0.0