RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendColor.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.net.codec.ByteOrder;
4import com.osroyale.net.codec.ByteModification;
5import com.osroyale.game.world.entity.mob.player.Player;
6import com.osroyale.net.packet.OutgoingPacket;
7
37
38public class SendColor extends OutgoingPacket {
39
40 private final int id;
41 private final int color;
42
43 public SendColor(int id, int color) {
44 super(122, 6);
45 this.id = id;
46 this.color = color;
47 }
48
49 @Override
50 public boolean encode(Player player) {
51 builder.writeShort(id, ByteModification.ADD, ByteOrder.LE)
52 .writeInt(color);
53 return true;
54 }
55
56}