RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendInterfaceAnimation.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.net.packet.OutgoingPacket;
5
25
26public class SendInterfaceAnimation extends OutgoingPacket {
27
28 private final int interfaceId;
29 private final int animationId;
30
31 public SendInterfaceAnimation(int interfaceId, int animationId) {
32 super(200, 4);
33 this.interfaceId = interfaceId;
34 this.animationId = animationId;
35 }
36
37 @Override
38 public boolean encode(Player player) {
39 builder.writeShort(interfaceId)
40 .writeShort(animationId);
41 return true;
42 }
43
44}