接口 FoodComponent.FoodEffect

所有超级接口:
ConfigurationSerializable
封闭接口:
FoodComponent

public static interface FoodComponent.FoodEffect extends ConfigurationSerializable
An effect which may be applied by this item when eaten.
  • 方法详细资料

    • getEffect

      Gets the effect which may be applied.
      返回:
      the effect
    • setEffect

      void setEffect(@NotNull @NotNull PotionEffect effect)
      Sets the effect which may be applied.
      参数:
      effect - the new effect
    • getProbability

      float getProbability()
      Gets the probability of this effect being applied.
      返回:
      probability
    • setProbability

      void setProbability(float probability)
      Sets the probability of this effect being applied.
      参数:
      probability - between 0 and 1 inclusive.