Class ProductModifier
java.lang.Object
de.marcely.bedwars.api.cosmetics.shop.data.ProductModifier
- All Implemented Interfaces:
ActionData
Data for when products received in the shop are modified.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PatternGet the pattern that is used to match item materials that should be modified.abstract intGet the minimum minor server version that this modifier is compatible with.abstract intGet the minimum patch server version that this modifier is compatible with.abstract @Nullable ShortGet the new durability (data value in 1.12 and older) that should be used for matched items.abstract @Nullable MaterialGet the new material that should be used for matched items.getType()Returns the type of this action data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.cosmetics.shop.data.ActionData
as, asAnimation, asImage, asKillMessages, asProductModifier, asSkin
-
Constructor Details
-
ProductModifier
public ProductModifier()
-
-
Method Details
-
getType
Description copied from interface:ActionDataReturns the type of this action data.- Specified by:
getTypein interfaceActionData- 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
Get the pattern that is used to match item materials that should be modified.- Returns:
- The pattern for identifying
-
getNewMaterial
Get the new material that should be used for matched items.- Returns:
- The new material, or
nullto not change the material
-
getNewDurability
Get the new durability (data value in 1.12 and older) that should be used for matched items.- Returns:
- The new durability, or
nullto not change the durability
-