Source
stringclasses
1 value
Date
int32
2.01k
2.01k
Text
stringlengths
3
15.9M
Token_count
int32
1
2.44M
github-java-corpus
2,012
package org.hyperion.rs2.util; import org.hyperion.rs2.Constants; /** * Text utility class. * @author Graham Edgecombe * */ public class TextUtils { /** * Unpacks text. * @param packedData The packet text. * @param size The length. * @return The string. */ public static String textU...
943
github-java-corpus
2,012
package org.hyperion.rs2.util; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import org.hyperion.rs2.model.Entity; /** * A class which represents a list of entities. * @author Graham Edgecombe * * @param <E> The type of entity. */ public class EntityList<E extend...
1,004
github-java-corpus
2,012
package org.hyperion.rs2.util; /** * A utility class for direction-related methods. * @author Graham Edgecombe * */ public class DirectionUtils { /** * Finds a direction. * @param dx X difference. * @param dy Y difference. * @return The direction. */ public static int direction(int dx, ...
233
github-java-corpus
2,012
package org.hyperion.rs2.util; import org.hyperion.rs2.Constants; /** * Name utility class. * @author Graham Edgecombe * */ public class NameUtils { /** * Checks if a name is valid. * @param s The name. * @return <code>true</code> if so, <code>false</code> if not. */ public static bool...
758
github-java-corpus
2,012
package org.hyperion.rs2.util; import org.apache.mina.core.buffer.IoBuffer; /** * A utility class for dealing with <code>IoBuffer</code>s. * @author Graham Edgecombe * */ public class IoBufferUtils { /** * Reads a RuneScape string from a buffer. * @param buf The buffer. * @return The string...
227
github-java-corpus
2,012
package org.hyperion.rs2.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; /** * A configuration parser will parse simple configuration files. * * An example of one of the files...
635
github-java-corpus
2,012
package org.hyperion.rs2.util; import java.util.Iterator; import java.util.NoSuchElementException; import org.hyperion.rs2.model.Entity; /** * An implementation of an iterator for an entity list. * @author Graham Edgecombe * * @param <E> The type of entity. */ public class EntityListIterator<E exte...
322
github-java-corpus
2,012
package org.hyperion.rs2; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStreamReader; import java.util.logging.Level; import java.util.logging.Logger; import javax.script.Invocable; import javax.script.ScriptEngine; import javax.script.Script...
570
github-java-corpus
2,012
package org.hyperion.rs2.model; import org.apache.mina.core.session.IoSession; import org.hyperion.rs2.net.ISAACCipher; /** * Contains details about a player (but not the actual <code>Player</code> * object itself) that has not logged in yet. * @author Graham Edgecombe * */ public class PlayerDetails ...
531
github-java-corpus
2,012
package org.hyperion.rs2.model.container; /** * Listens to events from a container. * @author Graham Edgecombe * */ public interface ContainerListener { /** * Called when an item is changed. * @param container The container. * @param slot The slot that was changed. */ public void itemChan...
153
github-java-corpus
2,012
package org.hyperion.rs2.model.container; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.List; import org.hyperion.rs2.Constants; import org.hyperion.rs2.model.Item; /** * A container holds a group of items. * @author Graham Edgecombe * */ ...
3,263
github-java-corpus
2,012
package org.hyperion.rs2.model.container.impl; import org.hyperion.rs2.model.Item; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.container.Container; import org.hyperion.rs2.model.container.ContainerListener; /** * A ContainerListener which updates a client-side interface to match the ...
283
github-java-corpus
2,012
package org.hyperion.rs2.model.container.impl; import org.hyperion.rs2.model.Item; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.container.Container; import org.hyperion.rs2.model.container.ContainerListener; import org.hyperion.rs2.model.container.Equipment; /** * A listener which upd...
1,222
github-java-corpus
2,012
package org.hyperion.rs2.model.container.impl; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.UpdateFlags.UpdateFlag; import org.hyperion.rs2.model.container.Container; import org.hyperion.rs2.model.container.ContainerListener; /** * A ContainerListener which flags for an appearance upda...
237
github-java-corpus
2,012
package org.hyperion.rs2.model.container; import java.util.HashMap; import java.util.Map; import org.hyperion.rs2.model.Item; /** * Contains equipment utility methods. * @author Graham Edgecombe * @author Lothy * */ public class Equipment { /** * The size of the equipment container. */ ...
5,959
github-java-corpus
2,012
package org.hyperion.rs2.model.container; import org.hyperion.rs2.model.Item; import org.hyperion.rs2.model.ItemDefinition; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.container.impl.InterfaceContainerListener; /** * Banking utility class. * @author Graham Edgecombe * */ public...
1,437
github-java-corpus
2,012
package org.hyperion.rs2.model.container; /** * A utility class for the player's inventory. * @author Graham Edgecombe * */ public class Inventory { /** * The size of the inventory container. */ public static final int SIZE = 28; /** * Inventory interface id. */ public static final...
79
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.util.Iterator; import java.util.Map; import java.util.Set; import org.hyperion.rs2.model.Entity; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.Damage.Hit; import org.hyperion.rs2.model.Damage.HitType; /** * Handles the combat system. * ...
1,447
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents a single instance of damage. * @author Graham * */ public class Damage { /** * Represents the four types of damage. * @author Graham * */ public static enum HitType { NO_DAMAGE (0), // blue NORMAL_DAMAGE (1), // red POISON_DAMA...
631
github-java-corpus
2,012
package org.hyperion.rs2.model.region; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.List; import org.hyperion.rs2.model.GameObject; import org.hyperion.rs2.model.NPC; import org.hyperion.rs2.model.Player; /** * Represents a single region. * @...
574
github-java-corpus
2,012
package org.hyperion.rs2.model.region; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import org.hyperion.rs2.model.Entity; import org.hyperion.rs2.model.Location; import org.hyperion.rs2.model.N...
1,264
github-java-corpus
2,012
package org.hyperion.rs2.model.region; /** * Holds the x and y coordinate for a region. * @author Graham Edgecombe * */ public class RegionCoordinates { /** * X coordinate. */ private int x; /** * Y coordinate. */ private int y; /** * Creates the region coordinate. * @par...
330
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.io.FileInputStream; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.Callable; import java.util.concurrent.Executors; import java.util.logging.Logger; import org.apache.mina.core.future.IoFuture; import org.a...
2,619
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.util.LinkedList; import java.util.List; import org.hyperion.rs2.model.UpdateFlags.UpdateFlag; import org.hyperion.rs2.model.region.Region; /** * Represents a character in the game world, i.e. a <code>Player</code> or * an <code>NPC</code>. * @author Graham Ed...
2,658
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Manages a palette of map regions for use in the constructed map region * packet. * @author Graham Edgecombe * */ public class Palette { /** * Normal direction. */ public static final int DIRECTION_NORMAL = 0; /** * Rotation direction clockwise by ...
810
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * <p>Represents a type of NPC.</p> * @author Graham Edgecombe * */ public class NPCDefinition { /** * Gets an npc definition by its id. * @param id The id. * @return The definition. */ public static NPCDefinition forId(int id) { return new NPCDefinit...
165
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.util.BitSet; import org.hyperion.rs2.event.impl.CooldownEvent; /** * Represents an entity's individual cooldowns. * @author Graham Edgecombe * @author Adaptations by Brett Russell */ public class EntityCooldowns { /** * The bitset (flag data). */ ...
467
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents a single graphic request. * @author Graham Edgecombe * */ public class Graphic { /** * Creates an graphic with no delay. * @param id The id. * @return The new graphic object. */ public static Graphic create(int id) { return create(id, 0)...
274
github-java-corpus
2,012
package org.hyperion.rs2.model; import org.hyperion.rs2.model.Damage.HitType; import org.hyperion.rs2.model.region.Region; /** * <p>Represents a non-player character in the in-game world.</p> * @author Graham Edgecombe * */ public class NPC extends Entity { /** * The definition. */ private ...
245
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel.MapMode; import java.util.logging.Logger; import org.hyperion.util.Buffers; /** * The item definition manager. * @author Vastico * @author Grah...
1,519
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents walking and running directions. * @author Graham Edgecombe * */ public class Sprites { /** * The walking direction. */ private int primary = -1; /** * The running direction. */ private int secondary = -1; /** * Gets the prima...
188
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents a single game object. * @author Graham Edgecombe * */ public class GameObject { /** * The location. */ private Location location; /** * The definition. */ private GameObjectDefinition definition; /** * The type. */ privat...
292
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents a single chat message. * @author Graham Edgecombe * */ public class ChatMessage { /** * The colour. */ private int colour; /** * The effects. */ private int effects; /** * The packed chat text. */ private byte[] text; ...
251
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * The request manager manages * @author Graham Edgecombe * */ public class RequestManager { /** * Represents the different types of request. * @author Graham Edgecombe * */ public enum RequestType { /** * A trade request. */ TRADE("tr...
436
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents a single animation request. * @author Graham Edgecombe * */ public class Animation { /** * Different animation constants. */ public final static Animation YES_EMOTE = create(855); public final static Animation NO_EMOTE = create(856); public fi...
630
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents a single location in the game world. * @author Graham Edgecombe * */ public class Location { /** * The x coordinate. */ private final int x; /** * The y coordinate. */ private final int y; /** * The z coordinate. */ priv...
1,057
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents a tile. * @author Graham Edgecombe * */ public class Tile { }
29
github-java-corpus
2,012
package org.hyperion.rs2.model; import org.hyperion.rs2.model.UpdateFlags.UpdateFlag; /** * Represents a player's skill and experience levels. * @author Graham Edgecombe * */ public class Skills { /** * The number of skills. */ public static final int SKILL_COUNT = 21; /** * The larg...
2,046
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.util.LinkedList; import java.util.Queue; import org.apache.mina.core.buffer.IoBuffer; import org.apache.mina.core.session.IoSession; import org.hyperion.data.Persistable; import org.hyperion.rs2.action.ActionQueue; import org.hyperion.rs2.action.impl.AttackAction; ...
3,872
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.util.Deque; import java.util.LinkedList; import org.hyperion.rs2.Constants; import org.hyperion.rs2.util.DirectionUtils; /** * <p>A <code>WalkingQueue</code> stores steps the client needs to walk and * allows this queue of steps to be modified.</p> * * <p>...
2,492
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Holds information about a single player's look. * @author Graham Edgecombe * */ public class Appearance { /** * The gender. */ private int gender; /** * The chest model. */ private int chest; /** * The arms model. */ private int ar...
1,077
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.util.ArrayList; import java.util.List; import org.hyperion.rs2.model.container.Bank; import org.hyperion.rs2.model.container.Container; import org.hyperion.rs2.model.container.ContainerListener; /** * Contains information about the state of interfaces open in th...
824
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents a single item. * @author Graham Edgecombe * */ public class Item { /** * The id. */ private int id; /** * The number of items. */ private int count; /** * Creates a single item. * @param id The id. */ public Item(int ...
310
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Contains client-side settings. * @author Graham Edgecombe * */ public class Settings { /** * Withdraw as notes flag. */ private boolean withdrawAsNotes = false; /** * Swapping flag. */ private boolean swapping = true; /** * Sets the wit...
233
github-java-corpus
2,012
package org.hyperion.rs2.model; /** * Represents a single type of object. * @author Graham Edgecombe * */ public class GameObjectDefinition { /** * The maximum number of object definitions */ public static final int MAX_DEFINITIONS = 9399; /** * The definitions array. */ private st...
763
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.util.BitSet; /** * Holds update flags. * @author Graham Edgecombe * */ public class UpdateFlags { /** * The bitset (flag data). */ private BitSet flags = new BitSet(); /** * Represents a single type of update flag. * @author Graham Edgec...
493
github-java-corpus
2,012
package org.hyperion.rs2.model; import java.io.File; import java.io.IOException; import java.util.logging.Logger; import org.hyperion.cache.Cache; import org.hyperion.cache.InvalidCacheException; import org.hyperion.cache.index.impl.MapIndex; import org.hyperion.cache.index.impl.StandardIndex; import org.hy...
468
github-java-corpus
2,012
package org.hyperion.rs2; /** * Holds global server constants. * @author Graham Edgecombe * */ public class Constants { /** * The directory for the engine scripts. */ public static final String SCRIPTS_DIRECTORY = "./data/scripts/"; /** * Difference in X coordinates for directions array...
1,657
github-java-corpus
2,012
package org.hyperion.rs2.action; import org.hyperion.rs2.event.Event; import org.hyperion.rs2.model.Player; /** * An <code>Event</code> used for handling game actions. * @author blakeman8192 * @author Graham Edgecombe * */ public abstract class Action extends Event { /** * A queue policy determines when th...
457
github-java-corpus
2,012
package org.hyperion.rs2.action.impl; import org.hyperion.rs2.action.Action; import org.hyperion.rs2.model.Location; import org.hyperion.rs2.model.Player; public abstract class InspectAction extends Action { /** * The location. */ private Location location; /** * Constru...
308
github-java-corpus
2,012
package org.hyperion.rs2.action.impl; import org.hyperion.rs2.model.ItemDefinition; import org.hyperion.rs2.model.Location; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.action.impl.MiningAction.Node; public class ProspectingAction extends InspectAction { /** * The node type. ...
267
github-java-corpus
2,012
package org.hyperion.rs2.action.impl; import org.hyperion.rs2.action.Action; import org.hyperion.rs2.model.Animation; import org.hyperion.rs2.model.Item; import org.hyperion.rs2.model.ItemDefinition; import org.hyperion.rs2.model.Location; import org.hyperion.rs2.model.Player; /** * <p>A harvesting action ...
957
github-java-corpus
2,012
package org.hyperion.rs2.action.impl; import java.util.HashMap; import java.util.Map; import java.util.Random; import org.hyperion.rs2.model.Animation; import org.hyperion.rs2.model.Item; import org.hyperion.rs2.model.Location; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.Skills; /...
2,170
github-java-corpus
2,012
package org.hyperion.rs2.action.impl; import org.hyperion.rs2.action.Action; import org.hyperion.rs2.model.Entity; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.Combat; import org.hyperion.rs2.model.Combat.AttackType; import org.hyperion.rs2.model.EntityCooldowns.CooldownFlags; /** * ...
369
github-java-corpus
2,012
package org.hyperion.rs2.action.impl; import org.hyperion.rs2.action.Action; import org.hyperion.rs2.model.Player; /** * <p>A destruction action is one where an item is used and lost forever, such * as bone burying (for the prayer skill).</p> * * <p>The destruction action class handles functionality com...
277
github-java-corpus
2,012
package org.hyperion.rs2.action.impl; import org.hyperion.rs2.action.Action; import org.hyperion.rs2.model.Player; /** * <p>A harvesting action is an action where on item is transformed into * another, typically this is in skills such as smithing and crafting.</p> * * <p>This class implements code relat...
302
github-java-corpus
2,012
package org.hyperion.rs2.action.impl; import java.util.HashMap; import java.util.Map; import java.util.Random; import org.hyperion.rs2.model.Animation; import org.hyperion.rs2.model.Item; import org.hyperion.rs2.model.Location; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.Skills; /...
2,318
github-java-corpus
2,012
package org.hyperion.rs2.action; import java.util.LinkedList; import java.util.Queue; import org.hyperion.rs2.model.World; import org.hyperion.rs2.model.container.Inventory; /** * Stores a queue of pending actions. * @author blakeman8192 * @author Graham Edgecombe * */ public class ActionQueue { ...
645
github-java-corpus
2,012
package org.hyperion.rs2; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.PlayerDetails; /** * An interface which describes the methods for loading persistent world * information such as players. * @author Graham Edgecombe * */ public interface WorldLoader { /** * Represent...
477
github-java-corpus
2,012
package org.hyperion.rs2; import java.io.IOException; import java.net.InetSocketAddress; import java.util.concurrent.ExecutionException; import java.util.logging.Logger; import org.apache.mina.core.service.IoAcceptor; import org.apache.mina.filter.firewall.ConnectionThrottleFilter; import org.apache.mina.tra...
625
github-java-corpus
2,012
package org.hyperion.rs2; import org.apache.mina.core.service.IoHandlerAdapter; import org.apache.mina.core.session.IdleStatus; import org.apache.mina.core.session.IoSession; import org.apache.mina.filter.codec.ProtocolCodecFilter; import org.hyperion.rs2.model.World; import org.hyperion.rs2.net.Packet; import...
381
github-java-corpus
2,012
package org.hyperion.rs2.pf; import org.hyperion.rs2.model.Location; /** * An implementation of a <code>PathFinder</code> which is 'dumb' and only * looks at surrounding tiles for a path, suitable for an NPC. * @author Graham Edgecombe * */ public class DumbPathFinder implements PathFinder { @Overr...
326
github-java-corpus
2,012
package org.hyperion.rs2.pf; import java.util.HashSet; import java.util.Set; import org.hyperion.rs2.model.GameObject; import org.hyperion.rs2.model.Location; import org.hyperion.rs2.model.World; import org.hyperion.rs2.model.region.Region; import org.hyperion.rs2.model.region.RegionManager; /** * A cla...
1,267
github-java-corpus
2,012
package org.hyperion.rs2.pf; /** * Represents a point on a <code>Path</code>. * @author Graham Edgecombe * */ public class Point { /** * The x coordinate. */ private final int x; /** * The y coordinate. */ private final int y; /** * Creates a point. * @param x The x coord...
333
github-java-corpus
2,012
package org.hyperion.rs2.pf; import java.util.HashSet; import java.util.Set; import org.hyperion.rs2.model.Location; /** * An implementation of a <code>PathFinder</code> which uses the A* search * algorithm. Unlike the <code>DumbPathFinder</code>, this will attempt to find * a possible path and is more ...
2,140
github-java-corpus
2,012
package org.hyperion.rs2.pf; /** * An individual tile on a <code>TileMap</code>. Immutable. * @author Graham Edgecombe * */ public class Tile { /** * Constant values used by the bitmask. */ public static final int NORTH_TRAVERSAL_PERMITTED = 1, EAST_TRAVERSAL_PERMITTED = 2, SOUTH_TRAVERSA...
423
github-java-corpus
2,012
package org.hyperion.rs2.pf; /** * A class which stores a grid of tiles and manages which directions can or * cannot be traversed. * @author Graham Edgecombe * */ public class TileMap { /** * A tile in which traversal in any direction is permitted. */ public static final Tile EMPTY_TILE = new...
958
github-java-corpus
2,012
package org.hyperion.rs2.pf; import java.util.Deque; import java.util.LinkedList; /** * Represents a path found by a <code>PathFinder</code> between two points. * @author Graham Edgecombe * */ public class Path { /** * The queue of points. */ private Deque<Point> tiles = new LinkedList<Poin...
178
github-java-corpus
2,012
package org.hyperion.rs2.pf; import org.hyperion.rs2.model.Location; /** * An interface which represents a path finding algorithm. * @author Graham Edgecombe * */ public interface PathFinder { /** * Finds a path between two points. * @param location The central point of the tile map. * @par...
205
github-java-corpus
2,012
package org.hyperion.rs2; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; import org.apache.mina.core.buffe...
649
github-java-corpus
2,012
package org.hyperion.rs2.login; import org.hyperion.rs2.WorldLoader; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.PlayerDetails; import org.hyperion.rs2.model.World; /** * A <code>WorldLoader</code> which loads from the login server. * @author Graham Edgecombe * */ public class ...
202
github-java-corpus
2,012
package org.hyperion.rs2.login; import java.net.InetSocketAddress; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; import org.apache.mina.core.buffer.IoBuffer; import org.apache.mina.core.future.ConnectFuture; import org.apache.mina.core.service.IoConnector; import org.apach...
2,242
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.net.Packet; /** * A packet handler that is called when an interface is closed. * @author Graham Edgecombe * */ public class CloseInterfacePacketHandler implements PacketHandler { @Override public void ha...
87
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.net.Packet; /** * A packet handler which takes no action i.e. it ignores the packet. * @author Graham Edgecombe * */ public class QuietPacketHandler implements PacketHandler { @Override public void handl...
81
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.Animation; import org.hyperion.rs2.model.Graphic; import org.hyperion.rs2.model.Item; import org.hyperion.rs2.model.Location; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.Skills; import org.hyperion.rs2.model.container.Bank; ...
1,400
github-java-corpus
2,012
package org.hyperion.rs2.packet; import java.util.logging.Logger; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.net.Packet; /** * Reports information about unhandled packets. * @author Graham Edgecombe * */ public class DefaultPacketHandler implements PacketHandler { /** * The ...
137
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.Constants; import org.hyperion.rs2.action.impl.AttackAction; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.World; import org.hyperion.rs2.net.Packet; public class PlayerOptionPacketHandler implements PacketHandler { @Override ...
458
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.container.Bank; import org.hyperion.rs2.model.container.Container; import org.hyperion.rs2.model.container.Equipment; import org.hyperion.rs2.model.container.Inventory; import org.hyperion.rs2.net.Packet; /**...
1,306
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.ChatMessage; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.net.Packet; import org.hyperion.rs2.util.TextUtils; /** * Handles public chat messages. * @author Graham Edgecombe * */ public class ChatPacketHandler implements Pa...
312
github-java-corpus
2,012
package org.hyperion.rs2.packet; import java.util.logging.Logger; import org.hyperion.rs2.model.Animation; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.net.Packet; /** * Handles clicking on most buttons in the interface. * @author Graham Edgecombe * */ public class ActionButtonPacke...
767
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.net.Packet; /** * A packet which handles walking requests. * @author Graham Edgecombe * */ public class WalkingPacketHandler implements PacketHandler { @Override public void handle(Player player, Packet ...
325
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.net.Packet; /** * An interface which describes a class that handles packets. * @author Graham Edgecombe * */ public interface PacketHandler { /** * Handles a single packet. * @param player The playe...
93
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.container.Bank; import org.hyperion.rs2.model.container.Inventory; import org.hyperion.rs2.net.Packet; /** * Switch item packet handler. * @author Graham Edgecombe * */ public class SwitchItemPacketHan...
299
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.Item; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.model.container.Equipment; import org.hyperion.rs2.model.container.Inventory; import org.hyperion.rs2.model.container.Equipment.EquipmentType; import org.hyperion.rs2.net.Packet; ...
363
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.action.impl.ProspectingAction; import org.hyperion.rs2.action.impl.WoodcuttingAction; import org.hyperion.rs2.action.impl.WoodcuttingAction.Tree; import org.hyperion.rs2.action.impl.MiningAction; import org.hyperion.rs2.action.impl.MiningAction.Node; impo...
581
github-java-corpus
2,012
package org.hyperion.rs2.packet; import org.hyperion.rs2.model.Player; import org.hyperion.rs2.net.Packet; /** * A packet sent when the player enters a custom amount for banking etc. * @author Graham Edgecombe * */ public class EnterAmountPacketHandler implements PacketHandler { @Override public v...
116
github-java-corpus
2,012
package org.hyperion.fileserver; import java.nio.ByteBuffer; import java.util.logging.Logger; import org.apache.mina.core.buffer.IoBuffer; import org.apache.mina.core.future.IoFuture; import org.apache.mina.core.future.IoFutureListener; import org.apache.mina.core.session.IoSession; /** * Represents a si...
893
github-java-corpus
2,012
package org.hyperion.fileserver; import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.MappedByteBuffer; import java.nio.channels.FileChannel.MapMode; import java.util.zip.CRC32; import org.hyperion.Server; import org.hyperion.cache.Ca...
2,557
github-java-corpus
2,012
package org.hyperion.fileserver; import java.io.IOException; import java.net.InetSocketAddress; import java.util.logging.Logger; import org.apache.mina.core.service.IoAcceptor; import org.apache.mina.transport.socket.nio.NioSocketAcceptor; import org.hyperion.fileserver.UpdateSession.Type; /** * <p>An im...
464
github-java-corpus
2,012
package org.hyperion.fileserver; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.mina.core.service.IoHandlerAdapter; import org.apache.mina.core.session.IoSession; import org.apache.mina.filter.codec.ProtocolCodecFilter; import org.apache.mina.filter.codec.textline.TextLineC...
304
github-java-corpus
2,012
package org.hyperion.fileserver; import java.nio.ByteBuffer; /** * Represents a response to either a JAGGRAB or HTTP request. * @author Graham Edgecombe * */ public class Response { /** * The data in the file. */ private ByteBuffer fileData; /** * The MIME type. */ private Strin...
273
github-java-corpus
2,012
package org.hyperion.fileserver; /** * Represents a single request for a file on either a JAGGRAB or HTTP server. * @author Graham Edgecombe * */ public class Request { /** * The path of the file. */ private String path; /** * Creates the request. * @param path The path of the file. ...
380
github-java-corpus
2,012
import fr.irit.smac.util.avt.AVT; import fr.irit.smac.util.avt.AVTBuilder; import fr.irit.smac.util.avt.Feedback; public class Subtype_1 extends Subtype { public Window window; public Subtype_1(TrnsysInterface _interface) { super(_interface); window = new Window(); } @Override public void step() ...
159
github-java-corpus
2,012
public abstract class Subtype { protected TrnsysInterface trnsysInterface; public Subtype(TrnsysInterface _interface) { trnsysInterface = _interface; } public abstract void step(); }
46
github-java-corpus
2,012
import java.lang.reflect.Constructor; public class TrnsysInterface { private double[] xin; private double[] xout; private int[] info; private double[] parameter; private Subtype subtype; private int timestep; public TrnsysInterface(int _uniqueId) { try { Class<?> classe = Class.forName("Su...
374
github-java-corpus
2,012
import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel...
711
github-java-corpus
2,012
package com.gmail.zariust.LightVote; import java.util.List; import java.util.HashSet; //import java.util.Set; import java.util.Timer; import java.util.TimerTask; import java.util.logging.Logger; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.World; import org.bukkit.command.Command; import...
4,461
github-java-corpus
2,012
package com.gmail.zariust.LightVote; import java.util.HashSet; //import java.util.Set; import org.bukkit.Material; public class LVTConfig { public Material bedVoteItem = null; public double reqYesVotesDay = 0.05; public double minAgreeDay = 0.5; public double reqYesVotesNight = 0.05; public double minAgreeNight...
354
github-java-corpus
2,012
package com.gmail.zariust.LightVote; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.util.HashMap; import java.util.HashSet; import java.util.Scanner; import java.util.logging.Logger; import org.bukkit.Materi...
2,692
github-java-corpus
2,012
package org.postgresql.top; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.app.Activity; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widge...
661