RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendItemModelOnInterface.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
29
30public class SendItemModelOnInterface extends OutgoingPacket {
31
32 private final int id;
33 private final int zoom;
34 private final int model;
35
36 public SendItemModelOnInterface(int id, int zoom, int model) {
37 super(246, 6);
38 this.id = id;
39 this.zoom = zoom;
40 this.model = model;
41 }
42
43 @Override
44 public boolean encode(Player player) {
45 builder.writeShort(id, ByteOrder.LE)
46 .writeShort(zoom)
47 .writeShort(model);
48 return true;
49 }
50
51}