Class ArmorStandWrapper

java.lang.Object
de.eldoria.eldoutilities.serialization.wrapper.ArmorStandWrapper
All Implemented Interfaces:
org.bukkit.configuration.serialization.ConfigurationSerializable

public class ArmorStandWrapper extends Object implements org.bukkit.configuration.serialization.ConfigurationSerializable
  • Constructor Details

    • ArmorStandWrapper

      public ArmorStandWrapper(Map<String,Object> objectMap)
  • Method Details

    • serialize

      public static ArmorStandWrapper serialize(org.bukkit.entity.ArmorStand armorStand)
      Wraps the armor stand into an serializable object.
      Parameters:
      armorStand - armor stand to wrap
      Returns:
      wrapped armor stand object.
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
    • spawn

      public org.bukkit.entity.ArmorStand spawn(org.bukkit.Location location)
      Spawns the wrapped armor stand at the requested location
      Parameters:
      location - location of armor stand
      Returns:
      spawned entity