RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendRemoveGroundItem.java
1
package
com.osroyale.net.packet.out;
2
3
import
com.osroyale.net.codec.ByteModification;
4
import
com.osroyale.game.world.entity.mob.player.Player;
5
import
com.osroyale.game.world.items.ground.GroundItem;
6
import
com.osroyale.net.packet.OutgoingPacket;
7
28
29
public
class
SendRemoveGroundItem
extends
OutgoingPacket {
30
31
private
final
GroundItem
groundItem;
32
33
public
SendRemoveGroundItem(
GroundItem
groundItem) {
34
super(156, 3);
35
this.groundItem = groundItem;
36
}
37
38
@Override
39
public
boolean
encode(
Player
player) {
40
player.send(
new
SendCoordinate
(groundItem.getPosition()));
41
builder.writeByte(0,
ByteModification
.
ADD
)
42
.writeShort(groundItem.item.getId());
43
return
true
;
44
}
45
46
}
com.osroyale.game.world.entity.mob.player.Player
Definition
Player.java:162
com.osroyale.game.world.items.ground.GroundItem
Definition
GroundItem.java:65
com.osroyale.net.packet.out.SendCoordinate
Definition
SendCoordinate.java:29
com.osroyale.net.codec.ByteModification
Definition
ByteModification.java:33
com.osroyale.net.codec.ByteModification.ADD
ADD
Definition
ByteModification.java:43