Package dev.lone.itemsadder.api
Class CustomEntity.Bone
java.lang.Object
dev.lone.itemsadder.api.CustomEntity.Bone
- Direct Known Subclasses:
CustomEntity.MountBone
- Enclosing class:
- CustomEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetColor()Get color of this bone.booleanGet if that bone has the enchant effect.intgetId()Seems to be available to get (at least with server events)org.bukkit.LocationGet the current bone location in the world.getName()Get the name of this bone.intvoidsetColor(int color) Changes color of this bone.voidsetEnchanted(boolean enchanted) Set enchant effect to this bone.
-
Constructor Details
-
Bone
public Bone()
-
-
Method Details
-
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 ofCustomEntityinstances 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.
-