Class CustomEntity.Bone
java.lang.Object
dev.lone.itemsadder.api.CustomEntity.Bone
- Direct Known Subclasses:
CustomEntity.MountBone
- Enclosing class:
CustomEntity
Wrapper for a rendered bone of a custom entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetColor()Gets the current color of this bone.booleanChecks if this bone is rendered with enchanted glint.intgetId()Seems to be available to get (at least with server events)Get the current bone location in the world.getName()Get the name of this bone.intvoidsetColor(int color) Sets the current color of this bone.voidsetEnchanted(boolean enchanted) Sets whether this bone is rendered with enchanted glint.
-
Constructor Details
-
Bone
public Bone()
-
-
Method Details
-
getName
-
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
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.
-