mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Forgot this for last commit. SendRoomUnitEffectComposer. - Credits to Beny.
This commit is contained in:
parent
f347289139
commit
f84be00933
@ -0,0 +1,24 @@
|
|||||||
|
package com.eu.habbo.threading.runnables;
|
||||||
|
|
||||||
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
|
import com.eu.habbo.habbohotel.rooms.RoomUnit;
|
||||||
|
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserEffectComposer;
|
||||||
|
|
||||||
|
public class SendRoomUnitEffectComposer implements Runnable
|
||||||
|
{
|
||||||
|
private final Room room;
|
||||||
|
private final RoomUnit roomUnit;
|
||||||
|
|
||||||
|
public SendRoomUnitEffectComposer(Room room, RoomUnit roomUnit) {
|
||||||
|
this.room = room;
|
||||||
|
this.roomUnit = roomUnit;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run()
|
||||||
|
{
|
||||||
|
if(this.room != null && this.roomUnit != null) {
|
||||||
|
this.room.sendComposer(new RoomUserEffectComposer(roomUnit).compose());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user