Interface GameObject

    • Method Detail

      • getType

        GameObject.Type getType()
        Gets the type of the object(e.g. WallObject, FloorDecoration, etc)
        Returns:
        A String representing the object type
      • getSpecializedTypeIndicator

        byte getSpecializedTypeIndicator()
        Also known as getObjectModelShape.

        0,1,2,3 = BoundaryObject 4,5,6,7,8 = WallObject 9,10,11,12,13,14,15,16,17,18,19,20,21 = PrimaryObject 22 = FloorDecoration

        10 is the most common object model shape/type (standard)
        Returns:
      • getDefinition

        @Nullable
        @Nullable GameObjectDefinition getDefinition()
        Gets the object's definition.
        Returns:
        The object's definition or null if it's unavailable.
      • getActiveDefinition

        @Nullable
        default @Nullable GameObjectDefinition getActiveDefinition()
        Gets the active 'local state' of this GameObjectDefinition if present, or the base GameObjectDefinition otherwise.
      • getSpotAnimationIds

        @RS3Only
        @Deprecated
        java.util.Set<java.lang.Integer> getSpotAnimationIds()
        Deprecated.
        use SpotAnimation and SpotAnimations. The implementation of this method was just a relatively accurate way of making it appear as if spot animations worked the same way for GameObjects as they do Npcs. That is not the case of the engine and this abstraction prevented several useful effects from being detected.