public static void broadcastDespawnedEntitySingle(Kaminari.Client <ProtocolQueues> client, Kaminari.IBroadcaster <ProtocolQueues> broadcaster, Despawn data) { client.getProtocol().getPhaseSync().OneShot(() => Kumo.Unsafe.broadcastDespawnedEntitySingle(broadcaster, data)); }
public static void broadcastDespawnedEntitySingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, Despawn data) { Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeDespawnedEntity); data.pack(Marshal.instance, packet); broadcaster.broadcast((ProtocolQueues pq) => pq.sendOrdered(packet)); }
public static void sendDespawnedEntity(Kaminari.Client <ProtocolQueues> client, Despawn data) { client.getProtocol().getPhaseSync().OneShot(() => Kumo.Unsafe.sendDespawnedEntity(client.getSuperPacket().getQueues(), data)); }
public static void sendDespawnedEntity(ProtocolQueues pq, Despawn data) { pq.sendOrdered((ushort)Opcodes.opcodeDespawnedEntity, data); }