Class CustomEntity.Bone

java.lang.Object
dev.lone.itemsadder.api.CustomEntity.Bone
Direct Known Subclasses:
CustomEntity.MountBone
Enclosing class:
CustomEntity

public static class CustomEntity.Bone extends Object
  • Constructor Details

    • Bone

      public Bone()
  • Method Details

    • getName

      public String getName()
      Get the name of this bone.
      Returns:
      the name of the bone.
    • getOrdinal

      public int getOrdinal()
      Returns:
      the number of the bone as it is specified within the CustomEntity. The number remains the same for the same bone independent of CustomEntity instances if their namespaced id is the same
    • getId

      public int getId()
      Seems to be available to get (at least with server events)
      Returns:
      the internal id of the bone custom entity
    • getLocation

      public org.bukkit.Location getLocation()
      Get the current bone location in the world.
      Returns:
      current bone location in the world.
    • getColor

      public int getColor()
      Get color of this bone.
      Returns:
      int color of this bone.
    • setColor

      public void setColor(int color)
      Changes color of this bone.
      Parameters:
      color - the color, can be obtained with tools like this: https://minecraftcommand.science/armor-color
    • getEnchanted

      public boolean getEnchanted()
      Get if that bone has the enchant effect.
      Returns:
      true if the bone has the enchant effect, otherwise false.
    • setEnchanted

      public void setEnchanted(boolean enchanted)
      Set enchant effect to this bone.
      Parameters:
      enchanted - true if enchanted, otherwise false.