Class NpcDefinition


public class NpcDefinition extends TransformableDefinition<NpcDefinition>
  • Constructor Details

    • NpcDefinition

      public NpcDefinition(int id)
  • Method Details

    • decode

      public void decode(org.rspeer.cache.util.Buffer buffer, int op)
      Specified by:
      decode in class Definition
    • postDecode

      public void postDecode()
      Specified by:
      postDecode in class Definition
    • getVarbitIndex

      public int getVarbitIndex()
      Specified by:
      getVarbitIndex in class TransformableDefinition<NpcDefinition>
    • getVarpIndex

      public int getVarpIndex()
      Specified by:
      getVarpIndex in class TransformableDefinition<NpcDefinition>
    • getTransformIds

      public int[] getTransformIds()
      Specified by:
      getTransformIds in class TransformableDefinition<NpcDefinition>
    • getName

      public String getName()
    • getTileSize

      public int getTileSize()
    • getModelIds

      public int[] getModelIds()
    • getHead

      public int[] getHead()
    • getIdleAnimation

      public int getIdleAnimation()
    • getTurnLeftAnimation

      public int getTurnLeftAnimation()
    • getTurnRightAnimation

      public int getTurnRightAnimation()
    • getWalkAnimation

      public int getWalkAnimation()
    • getWalkBackAnimation

      public int getWalkBackAnimation()
    • getWalkLeftAnimation

      public int getWalkLeftAnimation()
    • getWalkRightAnimation

      public int getWalkRightAnimation()
    • getRecolorFrom

      public short[] getRecolorFrom()
    • getRecolorTo

      public short[] getRecolorTo()
    • getRetextureFrom

      public short[] getRetextureFrom()
    • getRetextureTo

      public short[] getRetextureTo()
    • getRawActions

      public String[] getRawActions()
    • getChildrenActionsRaw

      public String[][] getChildrenActionsRaw()
    • getChildrenActionsRaw

      public String[] getChildrenActionsRaw(int parentActionIndex)
    • getTransformableActions

      public Map<Integer, TransformableAction> getTransformableActions()
    • getActions

      public List<String> getActions()
    • isRenderedOnMinimap

      public boolean isRenderedOnMinimap()
    • getCombatLevel

      public int getCombatLevel()
    • getScaleXY

      public int getScaleXY()
    • getScaleZ

      public int getScaleZ()
    • isAlwaysOnTop

      public boolean isAlwaysOnTop()
    • getAmbient

      public int getAmbient()
    • getContrast

      public int getContrast()
    • getOverheadIcons

      public List<Integer> getOverheadIcons()
    • getOverheadIcons

      public List<Integer> getOverheadIcons(boolean sprites)
    • getHeadIcons

      public int[] getHeadIcons()
    • getHeadIconSprites

      public short[] getHeadIconSprites()
    • getTurnSpeed

      public int getTurnSpeed()
    • getTransformVarbit

      public int getTransformVarbit()
    • isActive

      public boolean isActive()
    • isWalkSmoothing

      public boolean isWalkSmoothing()
    • isFollower

      public boolean isFollower()
    • getCategory

      public int getCategory()
    • getOpcodes74to79

      public int[] getOpcodes74to79()
    • getOp114Value

      public int getOp114Value()
    • getOp115Values

      public int[] getOp115Values()
    • getCrawlAnimation

      public int getCrawlAnimation()
    • getOp117Values

      public int[] getOp117Values()
    • isLowPriorityOptions

      public boolean isLowPriorityOptions()
    • getOverlayHeight

      public int getOverlayHeight()
    • getFootprintSize

      public int getFootprintSize()
    • getTransformableChildrenActions

      public Map<Integer, Map<Integer, TransformableAction>> getTransformableChildrenActions()
    • getBackgroundSound

      public NpcDefinition.BackgroundSound getBackgroundSound()
    • getBackgroundSoundDropoffEasing

      public int getBackgroundSoundDropoffEasing()
    • getBackgroundSoundFade

      public NpcDefinition.BackgroundSoundFade getBackgroundSoundFade()
    • getCrossWorldSound

      public int getCrossWorldSound()
    • getRandomSound

      public NpcDefinition.RandomSound getRandomSound()