Class ArmorStandBuilder
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.stands.ArmorStandBuilder
A builder class for creating armor stands.
-
Constructor Summary
ConstructorsConstructorDescriptionArmorStandBuilder
(org.bukkit.Location center) Create a new armor stand builder.ArmorStandBuilder
(org.bukkit.Location center, double xOffset, double yOffset, double zOffset) Create a new armor stand builder.ArmorStandBuilder
(org.bukkit.Location center, double xOffset, double yOffset, double zOffset, int rotationOffset) Create a new armor stand builder. -
Method Summary
Modifier and TypeMethodDescriptionapplyMetaData
(NBTDataType type, Object value) Apply NBT metadata to the armor stand.org.bukkit.entity.ArmorStand
The armor stand that is being built.setCustomName
(ArmorStandName name) Set the custom name of the armor stand.setGravity
(boolean gravity) Set the gravity of the armor stand.setHelmet
(org.bukkit.inventory.ItemStack helmet) Set the helmet item of the armor stand.setInvulnerable
(boolean invulnerable) Set if the armor stand is invulnerable.setPersistent
(boolean persistent) Set if the armor stand is persistent.setRemoveWhenFarAway
(boolean removeWhenFarAway) Set if the armor stand is removed when far away.setVisible
(boolean visible) Set the visibility of the armor stand.
-
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
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
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
Set the gravity of the armor stand.- Parameters:
gravity
- The gravity of the armor stand.- Returns:
- The armor stand builder.
-
setVisible
Set the visibility of the armor stand.- Parameters:
visible
- The visibility of the armor stand.- Returns:
- The armor stand builder.
-
setInvulnerable
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
Set the custom name of the armor stand.- Parameters:
name
- The custom name of the armor stand.- Returns:
- The armor stand builder.
-
setHelmet
Set the helmet item of the armor stand.- Parameters:
helmet
- The helmet item of the armor stand.- Returns:
- The armor stand builder.
-
applyMetaData
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.
-