Abdallah_Wahidi

Untitled

Aug 22nd, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1. package com.rs.game.entity.player.inter;
  2.  
  3. import com.rs.game.entity.player.Player;
  4.  
  5. /**
  6.  * An interface used to handle the registered in-game clicks for a RuneScape interface with their corresponding identification codes.
  7.  *
  8.  * @author Abdallah Wahidi | Aug 22, 2017 : 10:47:55 PM
  9.  */
  10. public interface Interface {
  11.    
  12.     /**
  13.      * This registers when a click is performed on an interface.
  14.      *
  15.      * @param interfaceId The id of the interface.
  16.      *
  17.      * @param buttonId The id of the button clicked.
  18.      *
  19.      * @param slotId The id of the slot.
  20.      *
  21.      * @param itemId The id of the item.
  22.      *
  23.      * @param opcode The opcode used.
  24.      *
  25.      * @param player The player that clicks this interface.
  26.      */
  27.     public void click(int interfaceId, int buttonId, int slotId, int itemId, int opcode, Player player);
  28.  
  29.     /**
  30.      * Gets and returns the possible IDs of this interface.
  31.      *
  32.      * @return the ids
  33.      */
  34.     public int[] getPossibleIds();
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment