Class EntityBuilder
java.lang.Object
net.headmonitor.MonitorLibSpigot.builders.EntityBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPotionEffect
(org.bukkit.potion.PotionEffect potionEffect) Add a PotionEffect to the Entity.entityType
(org.bukkit.entity.EntityType entityType) Set the Type of the Entity.Set the Name of the ItemStack from a String.name
(net.kyori.adventure.text.Component name) Set the Name of the ItemStack from a Component Text.setBaby
(boolean isBaby) //////////////////////////////////////////////////////////////////setPotionEffects
(List<org.bukkit.potion.PotionEffect> potionEffects) Set PotionEffects to the Entity from a List.org.bukkit.entity.Entity
spawn
(org.bukkit.World world, org.bukkit.Location location) ///////////////////////////////////////////////////////////////
-
Constructor Details
-
EntityBuilder
public EntityBuilder()
-
-
Method Details
-
entityType
Set the Type of the Entity.- Parameters:
entityType
- The type of the Entity.
-
name
Set the Name of the ItemStack from a Component Text.- Parameters:
name
- The Name Component.
-
name
Set the Name of the ItemStack from a String. The String will be converted to a Component with White Color and no Italics.- Parameters:
name
- The Name String.
-
setPotionEffects
Set PotionEffects to the Entity from a List.- Parameters:
potionEffects
- The PotionEffect List.
-
addPotionEffect
Add a PotionEffect to the Entity.- Parameters:
potionEffect
- The PotionEffect to add.
-
setBaby
////////////////////////////////////////////////////////////////// -
spawn
public org.bukkit.entity.Entity spawn(org.bukkit.World world, org.bukkit.Location location) ///////////////////////////////////////////////////////////////
-