Class EventPacket
java.lang.Object
org.rusherhack.core.event.type.Event
org.rusherhack.core.event.type.EventCancellable
org.rusherhack.client.api.events.network.EventPacket
- All Implemented Interfaces:
org.rusherhack.core.event.stage.IStageable
- Direct Known Subclasses:
EventPacket.Receive
,EventPacket.Send
public abstract class EventPacket
extends org.rusherhack.core.event.type.EventCancellable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event is called when a packet is being received from the server.static class
This event is called when a packet is being sent to the server. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.protocol.Packet<?>
org.rusherhack.core.event.stage.Stage
Methods inherited from class org.rusherhack.core.event.type.EventCancellable
isCancelled, setCancelled
Methods inherited from class org.rusherhack.core.event.type.Event
getStage, setStage
-
Constructor Details
-
EventPacket
public EventPacket(net.minecraft.network.protocol.Packet<?> packet)
-
-
Method Details
-
getPreferredStage
public org.rusherhack.core.event.stage.Stage getPreferredStage()- Overrides:
getPreferredStage
in classorg.rusherhack.core.event.type.Event
-
getPacket
public net.minecraft.network.protocol.Packet<?> getPacket()
-