Class ArmorStandBuilder

java.lang.Object
nl.sbdeveloper.vehiclesplus.api.stands.ArmorStandBuilder

public class ArmorStandBuilder extends Object
A builder class for creating armor stands.
  • Constructor Details

    • ArmorStandBuilder

      public ArmorStandBuilder(org.bukkit.Location center)
      Create a new armor stand builder.
      Parameters:
      center - The center location of the armor stand.
    • ArmorStandBuilder

      public ArmorStandBuilder(org.bukkit.Location center, double xOffset, double yOffset, double zOffset)
      Create a new armor stand builder.
      Parameters:
      center - The center location of the armor stand.
      xOffset - The x offset applied to the center location.
      yOffset - The y offset applied to the center location.
      zOffset - The z offset applied to the center location.
    • ArmorStandBuilder

      public ArmorStandBuilder(org.bukkit.Location center, double xOffset, double yOffset, double zOffset, int rotationOffset)
      Create a new armor stand builder.
      Parameters:
      center - The center location of the armor stand.
      xOffset - The x offset applied to the center location.
      yOffset - The y offset applied to the center location.
      zOffset - The z offset applied to the center location.
      rotationOffset - The rotation offset applied to the center location.
  • Method Details

    • setPersistent

      public ArmorStandBuilder setPersistent(boolean persistent)
      Set if the armor stand is persistent. In that case, the armor stand will not be removed when the chunk is unloaded.
      Parameters:
      persistent - If the armor stand is persistent.
      Returns:
      The armor stand builder.
    • setRemoveWhenFarAway

      public ArmorStandBuilder setRemoveWhenFarAway(boolean removeWhenFarAway)
      Set if the armor stand is removed when far away. In that case, the armor stand will be removed when the player is far away.
      Parameters:
      removeWhenFarAway - If the armor stand is removed when far away.
      Returns:
      The armor stand builder.
    • setGravity

      public ArmorStandBuilder setGravity(boolean gravity)
      Set the gravity of the armor stand.
      Parameters:
      gravity - The gravity of the armor stand.
      Returns:
      The armor stand builder.
    • setVisible

      public ArmorStandBuilder setVisible(boolean visible)
      Set the visibility of the armor stand.
      Parameters:
      visible - The visibility of the armor stand.
      Returns:
      The armor stand builder.
    • setInvulnerable

      public ArmorStandBuilder setInvulnerable(boolean invulnerable)
      Set if the armor stand is invulnerable. In that case, the armor stand will not take damage.
      Parameters:
      invulnerable - If the armor stand is invulnerable.
      Returns:
      The armor stand builder.
    • setCustomName

      public ArmorStandBuilder setCustomName(ArmorStandName name)
      Set the custom name of the armor stand.
      Parameters:
      name - The custom name of the armor stand.
      Returns:
      The armor stand builder.
    • setHelmet

      public ArmorStandBuilder setHelmet(org.bukkit.inventory.ItemStack helmet)
      Set the helmet item of the armor stand.
      Parameters:
      helmet - The helmet item of the armor stand.
      Returns:
      The armor stand builder.
    • applyMetaData

      public ArmorStandBuilder applyMetaData(NBTDataType type, Object value)
      Apply NBT metadata to the armor stand.
      Parameters:
      type - The NBT data type.
      value - The NBT data value.
      Returns:
      The armor stand builder.
    • getArmorStand

      public org.bukkit.entity.ArmorStand getArmorStand()
      The armor stand that is being built.