Interface ApplyPropertyToItemEvent<G extends Game,P extends BWPlayer,I extends org.screamingsandals.lib.utils.Wrapper>

All Known Subinterfaces:
ApplyPropertyToBoughtItemEvent<G,P,I>, ApplyPropertyToDisplayedItemEvent<G,P,I>

@NonExtendable public interface ApplyPropertyToItemEvent<G extends Game,P extends BWPlayer,I extends org.screamingsandals.lib.utils.Wrapper>
  • Method Details

    • getGame

      G getGame()
    • getPlayer

      P getPlayer()
    • getStack

      I getStack()
    • getPropertyName

      String getPropertyName()
    • getProperties

      Map<String,Object> getProperties()
    • setStack

      void setStack(Object stack)
      Parameters:
      stack - wrapper or platform item
    • handle

      static void handle(Object plugin, Consumer<ApplyPropertyToItemEvent<Game,BWPlayer,org.screamingsandals.lib.utils.Wrapper>> consumer)
    • getProperty

      default Object getProperty(String key)
    • hasProperty

      default boolean hasProperty(String key)
    • getStringProperty

      default String getStringProperty(String key)
    • getByteProperty

      default byte getByteProperty(String key)
    • getShortProperty

      default short getShortProperty(String key)
    • getIntProperty

      default int getIntProperty(String key)
    • getLongProperty

      default long getLongProperty(String key)
    • getFloatProperty

      default float getFloatProperty(String key)
    • getDoubleProperty

      default double getDoubleProperty(String key)
    • getBooleanProperty

      default boolean getBooleanProperty(String key)
    • getCharProperty

      default char getCharProperty(String key)