-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathTeamEvent.java
43 lines (36 loc) · 2.43 KB
/
TeamEvent.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package dev.ftb.mods.ftbteams.event;
import dev.architectury.event.Event;
import dev.architectury.event.EventFactory;
import dev.ftb.mods.ftbteams.data.Team;
import java.util.function.Consumer;
/**
* @author LatvianModder
*/
public class TeamEvent {
public static final Event<Consumer<TeamCreatedEvent>> CREATED = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamEvent>> LOADED = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamEvent>> SAVED = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamEvent>> DELETED = EventFactory.createConsumerLoop();
public static final Event<Consumer<PlayerLoggedInAfterTeamEvent>> PLAYER_LOGGED_IN = EventFactory.createConsumerLoop();
public static final Event<Consumer<PlayerTransferredTeamOwnershipEvent>> OWNERSHIP_TRANSFERRED = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamCollectPropertiesEvent>> COLLECT_PROPERTIES = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamPropertiesChangedEvent>> PROPERTIES_CHANGED = EventFactory.createConsumerLoop();
public static final Event<Consumer<PlayerChangedTeamEvent>> PLAYER_CHANGED = EventFactory.createConsumerLoop();
public static final Event<Consumer<PlayerJoinedPartyTeamEvent>> PLAYER_JOINED_PARTY = EventFactory.createConsumerLoop();
public static final Event<Consumer<PlayerLeftPartyTeamEvent>> PLAYER_LEFT_PARTY = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamInfoEvent>> INFO = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamAllyEvent>> ADD_ALLY = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamAllyEvent>> REMOVE_ALLY = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamMessageSentEvent>> MESSAGE_SENT = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamRankChangedEvent>> RANK_CHANGED = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamInvitedEvent>> INVITED = EventFactory.createConsumerLoop();
public static final Event<Consumer<TeamInviteDeniedEvent>> INVITE_DENIED = EventFactory.createConsumerLoop();
public static final Event<Consumer<ClientTeamPropertiesChangedEvent>> CLIENT_PROPERTIES_CHANGED = EventFactory.createConsumerLoop(ClientTeamPropertiesChangedEvent.class);
private final Team team;
public TeamEvent(Team t) {
team = t;
}
public Team getTeam() {
return team;
}
}