Class ProductModifier

java.lang.Object
de.marcely.bedwars.api.cosmetics.shop.data.ProductModifier
All Implemented Interfaces:
ActionData

public abstract class ProductModifier extends Object implements ActionData
Data for when products received in the shop are modified.
See Also:
  • Constructor Details

    • ProductModifier

      public ProductModifier()
  • Method Details

    • getType

      public ActionDataType<ProductModifier> getType()
      Description copied from interface: ActionData
      Returns the type of this action data.
      Specified by:
      getType in interface ActionData
      Returns:
      The type represented by this data
    • getMinVersionMinor

      public abstract int getMinVersionMinor()
      Get the minimum minor server version that this modifier is compatible with.

      Minor represents the 20 in 1.20.4

      Returns:
      The minimum minor server version that this modifier is compatible with
    • getMinVersionPatch

      public abstract int getMinVersionPatch()
      Get the minimum patch server version that this modifier is compatible with.

      Patch represents the 4 in 1.20.4

      Returns:
      The minimum patch version that this modifier is compatible with
    • getMaterialPattern

      public abstract Pattern getMaterialPattern()
      Get the pattern that is used to match item materials that should be modified.
      Returns:
      The pattern for identifying
    • getNewMaterial

      @Nullable public abstract @Nullable Material getNewMaterial()
      Get the new material that should be used for matched items.
      Returns:
      The new material, or null to not change the material
    • getNewDurability

      @Nullable public abstract @Nullable Short getNewDurability()
      Get the new durability (data value in 1.12 and older) that should be used for matched items.
      Returns:
      The new durability, or null to not change the durability