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