forked from upstream/ProAntiTab
Simplified Instance-Creation
This commit is contained in:
1 parent
dbae642d40
commit
516003398d
3 files changed
+17
-5
No files matched your search
@@ -1,14 +1,18 @@
|
||||
package de.rayzs.pat.api.event.events;
|
||||
|
||||
import de.rayzs.pat.api.event.PATEvent;
|
||||
import de.rayzs.pat.utils.CommunicationPackets;
|
||||
|
||||
import de.rayzs.pat.api.event.PATEvent;
|
||||
import java.util.UUID;
|
||||
|
||||
public abstract class ReceiveSyncEvent extends PATEvent<ReceiveSyncEvent> {
|
||||
|
||||
private final CommunicationPackets.PacketBundle packetBundle;
|
||||
|
||||
public ReceiveSyncEvent() {
|
||||
super(null);
|
||||
this.packetBundle = null;
|
||||
}
|
||||
|
||||
public ReceiveSyncEvent(UUID senderUniqueId, CommunicationPackets.PacketBundle packetBundle) {
|
||||
super(senderUniqueId);
|
||||
this.packetBundle = packetBundle;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
package de.rayzs.pat.api.event.events;
|
||||
|
||||
import de.rayzs.pat.api.event.PATEvent;
|
||||
import de.rayzs.pat.utils.CommunicationPackets;
|
||||
|
||||
import de.rayzs.pat.api.event.PATEvent;
|
||||
import java.util.UUID;
|
||||
|
||||
public abstract class SentSyncEvent extends PATEvent<SentSyncEvent> {
|
||||
@@ -10,6 +9,12 @@ public abstract class SentSyncEvent extends PATEvent<SentSyncEvent> {
|
||||
private final CommunicationPackets.PacketBundle packetBundle;
|
||||
private final String serverName;
|
||||
|
||||
public SentSyncEvent() {
|
||||
super(null);
|
||||
this.packetBundle = null;
|
||||
this.serverName = null;
|
||||
}
|
||||
|
||||
public SentSyncEvent(UUID senderUniqueId, CommunicationPackets.PacketBundle packetBundle, String serverName) {
|
||||
super(senderUniqueId);
|
||||
this.packetBundle = packetBundle;
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
package de.rayzs.pat.api.event.events;
|
||||
|
||||
import de.rayzs.pat.api.event.PATEvent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public abstract class UpdatePluginEvent extends PATEvent<UpdatePluginEvent> {
|
||||
|
||||
public UpdatePluginEvent() {
|
||||
super(null);;
|
||||
}
|
||||
|
||||
public UpdatePluginEvent(UUID senderUniqueId) {
|
||||
super(senderUniqueId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user