Class Npcs.NpcDefinition.NpcAttachmentInfo

java.lang.Object
net.risingworld.api.definitions.Npcs.NpcDefinition.NpcAttachmentInfo
Enclosing class:
Npcs.NpcDefinition

public final class Npcs.NpcDefinition.NpcAttachmentInfo extends Object
  • Field Details

    • npcDef

      public Npcs.NpcDefinition npcDef
    • variant

      public int variant
    • itemDef

      public Items.ItemDefinition itemDef
      Related item definition
    • assetpath

      public String assetpath
      Asset path to a prefab that should be attached to the npc
    • parent

      public String parent
      Name of the bone where the attachment will be attached to. If null, it will be attached to the main npc object
    • rootbone

      public String rootbone
      Optional root bone (only relevant for skinned mesh renderer). May be null
    • bones

      public String[] bones
      Optional array of bones (only relevant for skinned mesh renderer). May be null
    • anchor

      public String anchor
      Name of an optional anchor (for further use), which is child of the attachment prefab. If null, the main prefab object will be the attach target
    • offset

      public Vector3f offset
      Local offset of the attachment prefab
    • rotation

      public Quaternion rotation
      Local rotation of the attachment prefab
    • scale

      public Vector3f scale
      Local scale of the attachment prefab