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
Wrapper for a rendered bone of a custom entity.
  • 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
    • 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 Location getLocation()
      Get the current bone location in the world.
      Returns:
      current bone location in the world.
    • getColor

      public int getColor()
      Gets the current color of this bone.
      Returns:
      the RGB color.
    • setColor

      public void setColor(int color)
      Sets the current color of this bone.
      Parameters:
      color - the RGB color.
    • getEnchanted

      public boolean getEnchanted()
      Checks if this bone is rendered with enchanted glint.
      Returns:
      true if enchanted glint is enabled.
    • setEnchanted

      public void setEnchanted(boolean enchanted)
      Sets whether this bone is rendered with enchanted glint.
      Parameters:
      enchanted - true to enable enchanted glint.