Class DietaryRestriction

java.lang.Object
io.github.djtpj.trait.Trait
io.github.djtpj.trait.SimpleTrait
io.github.djtpj.trait.traits.DietaryRestriction
All Implemented Interfaces:
org.bukkit.event.Listener

public class DietaryRestriction extends SimpleTrait
DietaryRestriction is an ability that prevents a player from eating certain sets of food.
See Also:
  • DietaryRestriction.RestrictionType
  • Field Details

  • Constructor Details

    • DietaryRestriction

      public DietaryRestriction(io.github.djtpj.trait.traits.DietaryRestriction.RestrictionType type)
    • DietaryRestriction

      public DietaryRestriction(String type)
  • Method Details

    • preventEat

      public void preventEat(org.bukkit.event.player.PlayerItemConsumeEvent event)