Class EntityBuilder

java.lang.Object
net.headmonitor.MonitorLibSpigot.builders.EntityBuilder

public class EntityBuilder extends Object
  • Constructor Details

    • EntityBuilder

      public EntityBuilder()
  • Method Details

    • entityType

      public EntityBuilder entityType(org.bukkit.entity.EntityType entityType)
      Set the Type of the Entity.
      Parameters:
      entityType - The type of the Entity.
    • name

      public EntityBuilder name(net.kyori.adventure.text.Component name)
      Set the Name of the ItemStack from a Component Text.
      Parameters:
      name - The Name Component.
    • name

      public EntityBuilder name(String 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

      public EntityBuilder setPotionEffects(List<org.bukkit.potion.PotionEffect> potionEffects)
      Set PotionEffects to the Entity from a List.
      Parameters:
      potionEffects - The PotionEffect List.
    • addPotionEffect

      public EntityBuilder addPotionEffect(org.bukkit.potion.PotionEffect potionEffect)
      Add a PotionEffect to the Entity.
      Parameters:
      potionEffect - The PotionEffect to add.
    • setBaby

      public EntityBuilder setBaby(boolean isBaby)
      //////////////////////////////////////////////////////////////////
    • spawn

      public org.bukkit.entity.Entity spawn(org.bukkit.World world, org.bukkit.Location location)
      ///////////////////////////////////////////////////////////////