RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendScreenMode.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.net.codec.ByteModification;
5import com.osroyale.net.codec.ByteOrder;
6import com.osroyale.net.packet.OutgoingPacket;
7import com.osroyale.util.ScreenMode;
8
32
33public class SendScreenMode extends OutgoingPacket {
34 private final int width;
35 private final int length;
36
37 public SendScreenMode(int width, int length) {
38 super(108, 6);
39 this.width = width;
40 this.length = length;
41 }
42
43 @Override
44 public boolean encode(Player player) {
45 builder.writeShort(width, ByteModification.ADD, ByteOrder.LE).writeInt(length);
46 return true;
47 }
48}
49