Package io.github.djtpj.trait.traits
Class PacifyMob
java.lang.Object
io.github.djtpj.trait.Trait
io.github.djtpj.trait.SimpleTrait
io.github.djtpj.trait.traits.PacifyMob
- All Implemented Interfaces:
org.bukkit.event.Listener
Makes a certain mob(s) unable to aggro on players.
-
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
ConstructorsConstructorDescriptionPacifyMob
(ItemIcon icon, Trait.Type type, org.json.simple.JSONArray types) PacifyMob
(String name, String description, org.bukkit.ChatColor color, org.bukkit.Material material, Trait.Type type, org.bukkit.entity.EntityType[] types) -
Method Summary
Modifier and TypeMethodDescriptionvoid
preventAggro
(org.bukkit.event.entity.EntityTargetEvent event)
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
PacifyMob
public PacifyMob(String name, String description, org.bukkit.ChatColor color, org.bukkit.Material material, Trait.Type type, org.bukkit.entity.EntityType[] types) -
PacifyMob
-
-
Method Details
-
preventAggro
public void preventAggro(org.bukkit.event.entity.EntityTargetEvent event)
-