1package com.runehive.net.packet.out;
3import com.runehive.net.codec.ByteModification;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.object.GameObject;
6import com.runehive.net.packet.OutgoingPacket;
23 .writeByte((
object.getObjectType().getId() << 2) + (
object.getDirection().getId() & 3),
ByteModification.
SUB)
This class represents a character controlled by a player.
void send(OutgoingPacket encoder)
final PacketBuilder builder
OutgoingPacket(int opcode, int capacity)
boolean encode(Player player)
SendObjectAnimation(int animation, GameObject object)
Represents RuneScape's custom value types.
SUB
Subtracts the value from 128 when written, adds 128 to the rarity when read.
ADD
Adds 128 to the value when written, subtracts 128 from the rarity when read.
Represents a game object.