Package io.github.djtpj.trait.traits
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
DietaryRestriction is an ability that prevents a player from eating certain sets of food.
- See Also:
-
DietaryRestriction.RestrictionType
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.djtpj.trait.Trait
Trait.Type
-
Field Summary
FieldsFields inherited from class io.github.djtpj.trait.Trait
icon, playerTraitMap, type
-
Constructor Summary
ConstructorsConstructorDescriptionDietaryRestriction
(io.github.djtpj.trait.traits.DietaryRestriction.RestrictionType type) DietaryRestriction
(String type) -
Method Summary
Modifier and TypeMethodDescriptionvoid
preventEat
(org.bukkit.event.player.PlayerItemConsumeEvent event)
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
DietaryRestriction
public DietaryRestriction(io.github.djtpj.trait.traits.DietaryRestriction.RestrictionType type) -
DietaryRestriction
-
-
Method Details
-
preventEat
public void preventEat(org.bukkit.event.player.PlayerItemConsumeEvent event)
-