Class EntityBuilder
java.lang.Object
net.headmonitor.MonitorLibPaper.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) Set the Entity to it's Baby Variant.setPotionEffects(List<org.bukkit.potion.PotionEffect> potionEffects) Set PotionEffects to the Entity from a List.org.bukkit.entity.Entityspawn(org.bukkit.World world, org.bukkit.Location location) Spawn the Entity.
-
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
Set the Entity to it's Baby Variant.- Parameters:
isBaby- Whether to set to Baby Variant.
-
spawn
public org.bukkit.entity.Entity spawn(org.bukkit.World world, org.bukkit.Location location) Spawn the Entity.- Parameters:
world- The World to Spawn the Entity on.location- The Location to Spawn the Entity on.- Returns:
- Returns the Spawned Entity.
-