RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendToggle.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.net.codec.ByteOrder;
5import com.osroyale.net.packet.OutgoingPacket;
6
28
29public final class SendToggle extends OutgoingPacket {
30
31 private final int id;
32 private final int value;
33
34 public SendToggle(int id, int value) {
35 super(87, 6);
36 this.id = id;
37 this.value = value;
38 }
39
40 @Override
41 protected boolean encode(Player player) {
42 builder.writeShort(id, ByteOrder.LE)
43 .writeInt(value, ByteOrder.ME);
44 return true;
45 }
46
47}