Class CacheNpcDefinition.Extended
- java.lang.Object
-
- com.runemate.game.api.hybrid.entities.definitions.NpcDefinition
-
- com.runemate.game.api.hybrid.cache.elements.CacheNpcDefinition.Extended
-
- All Implemented Interfaces:
Identifiable
,Onymous
- Enclosing class:
- CacheNpcDefinition
public class CacheNpcDefinition.Extended extends NpcDefinition
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
appearsOnMinimap()
@NonNull java.util.List<java.lang.String>
getActions()
Gets the powers of this npc@NonNull java.util.List<java.lang.Integer>
getAppearance()
Gets a list of integers that are used to represent this entities appearance.int
getAreaEdgeLength()
Attribute
getAttribute(long id)
@NonNull java.util.List<Attribute>
getAttributes()
@NonNull java.util.List<java.lang.Integer>
getChatHeadAppearance()
@NonNull java.util.Map<java.awt.Color,java.awt.Color>
getColorSubstitutions()
Gets a mapping of colors that are to be substituted in the base model.int
getId()
An id that can be used to identify this npcint
getLevel()
Gets this npc's levelNpcDefinition
getLocalState()
@NonNull java.util.Map<Material,Material>
getMaterialSubstitutions()
int
getModelXZScale()
int
getModelYScale()
int
getMovementCapabilitiesFlag()
@NonNull java.lang.String
getName()
int
getOverheadGaugeWidth()
@NonNull java.util.List<OverheadIcon>
getOverheadIcons()
The icons above this npcjava.lang.String[]
getRawActions()
Varbit
getStateVarbit()
TheVarbit
responsible for controlling the state (NpcDefinition) of the Npc, if present.Varp
getStateVarp()
TheVarp
responsible for controlling the state (NpcDefinition) of the Npc, if present.int[]
getTransformationIds()
@NonNull java.util.Collection<NpcDefinition>
getTransformations()
int[][]
getXYZModelTranslations()
boolean
hasPrioritizedRendering()
boolean
isClickable()
Gets whether or not the npc with this definition can be interacted with.boolean
isFollower()
-
Methods inherited from class com.runemate.game.api.hybrid.entities.definitions.NpcDefinition
get, get, get, toString
-
-
-
-
Method Detail
-
getXYZModelTranslations
public int[][] getXYZModelTranslations()
-
getModelXZScale
public int getModelXZScale()
-
getModelYScale
public int getModelYScale()
-
getName
@NonNull public @NonNull java.lang.String getName()
- Specified by:
getName
in interfaceOnymous
- Specified by:
getName
in classNpcDefinition
-
getOverheadGaugeWidth
@OSRSOnly public int getOverheadGaugeWidth()
- Specified by:
getOverheadGaugeWidth
in classNpcDefinition
-
appearsOnMinimap
public boolean appearsOnMinimap()
- Specified by:
appearsOnMinimap
in classNpcDefinition
-
getActions
@NonNull public @NonNull java.util.List<java.lang.String> getActions()
Description copied from class:NpcDefinition
Gets the powers of this npc- Specified by:
getActions
in classNpcDefinition
-
getRawActions
@Nullable public java.lang.String[] getRawActions()
- Specified by:
getRawActions
in classNpcDefinition
-
getAppearance
@NonNull public @NonNull java.util.List<java.lang.Integer> getAppearance()
Description copied from class:NpcDefinition
Gets a list of integers that are used to represent this entities appearance. Internally these are used to generate an Npc's Model.- Specified by:
getAppearance
in classNpcDefinition
-
getChatHeadAppearance
@NonNull public @NonNull java.util.List<java.lang.Integer> getChatHeadAppearance()
- Specified by:
getChatHeadAppearance
in classNpcDefinition
-
getAttribute
@Nullable public Attribute getAttribute(long id)
- Specified by:
getAttribute
in classNpcDefinition
-
getAttributes
@NonNull public @NonNull java.util.List<Attribute> getAttributes()
- Specified by:
getAttributes
in classNpcDefinition
-
getColorSubstitutions
@NonNull public @NonNull java.util.Map<java.awt.Color,java.awt.Color> getColorSubstitutions()
Description copied from class:NpcDefinition
Gets a mapping of colors that are to be substituted in the base model.- Specified by:
getColorSubstitutions
in classNpcDefinition
-
getId
public int getId()
Description copied from class:NpcDefinition
An id that can be used to identify this npc- Specified by:
getId
in interfaceIdentifiable
- Specified by:
getId
in classNpcDefinition
-
getLevel
public int getLevel()
Description copied from class:NpcDefinition
Gets this npc's level- Specified by:
getLevel
in classNpcDefinition
-
getLocalState
@Nullable public NpcDefinition getLocalState()
- Specified by:
getLocalState
in classNpcDefinition
-
getMaterialSubstitutions
@NonNull public @NonNull java.util.Map<Material,Material> getMaterialSubstitutions()
- Specified by:
getMaterialSubstitutions
in classNpcDefinition
-
getMovementCapabilitiesFlag
public int getMovementCapabilitiesFlag()
- Specified by:
getMovementCapabilitiesFlag
in classNpcDefinition
-
getOverheadIcons
@NonNull public @NonNull java.util.List<OverheadIcon> getOverheadIcons()
Description copied from class:NpcDefinition
The icons above this npc- Specified by:
getOverheadIcons
in classNpcDefinition
- Returns:
- a list of overhead icons
-
getTransformations
@NonNull public @NonNull java.util.Collection<NpcDefinition> getTransformations()
- Specified by:
getTransformations
in classNpcDefinition
-
getTransformationIds
public int[] getTransformationIds()
-
hasPrioritizedRendering
public boolean hasPrioritizedRendering()
- Specified by:
hasPrioritizedRendering
in classNpcDefinition
-
isClickable
public boolean isClickable()
Description copied from class:NpcDefinition
Gets whether or not the npc with this definition can be interacted with.- Specified by:
isClickable
in classNpcDefinition
-
isFollower
public boolean isFollower()
- Specified by:
isFollower
in classNpcDefinition
-
getAreaEdgeLength
public int getAreaEdgeLength()
- Specified by:
getAreaEdgeLength
in classNpcDefinition
-
getStateVarp
public Varp getStateVarp()
Description copied from class:NpcDefinition
TheVarp
responsible for controlling the state (NpcDefinition) of the Npc, if present.- Specified by:
getStateVarp
in classNpcDefinition
-
getStateVarbit
public Varbit getStateVarbit()
Description copied from class:NpcDefinition
TheVarbit
responsible for controlling the state (NpcDefinition) of the Npc, if present.- Specified by:
getStateVarbit
in classNpcDefinition
-
-