RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendRemoveObject.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.object.GameObject;
6
import
com.osroyale.net.packet.OutgoingPacket;
7
28
29
public
class
SendRemoveObject
extends
OutgoingPacket {
30
31
private
final
GameObject
object;
32
33
public
SendRemoveObject(
GameObject
object
) {
34
super(101, 2);
35
this.object = object;
36
}
37
38
@Override
39
public
boolean
encode(
Player
player) {
40
player.send(
new
SendCoordinate
(
object
.getPosition()));
41
builder.writeByte(
object
.getObjectType().getId() << 2 | (
object
.getDirection().getId() & 3),
ByteModification
.
NEG
)
42
.writeByte(0);
43
return
true
;
44
}
45
}
com.osroyale.game.world.entity.mob.player.Player
Definition
Player.java:162
com.osroyale.net.packet.out.SendCoordinate
Definition
SendCoordinate.java:29
com.osroyale.net.codec.ByteModification
Definition
ByteModification.java:33
com.osroyale.net.codec.ByteModification.NEG
NEG
Definition
ByteModification.java:48
com.osroyale.game.world.object.GameObject
Definition
GameObject.java:13