Package net.minecraftforge.event.network
Class CustomPayloadEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.network.CustomPayloadEvent
public class CustomPayloadEvent
extends net.minecraftforge.eventbus.api.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
private final int
private final FriendlyByteBuf
private final CustomPayloadEvent.Context
-
Constructor Summary
ConstructorDescriptionCustomPayloadEvent
(ResourceLocation channel, FriendlyByteBuf payload, CustomPayloadEvent.Context source, int loginIndex) CustomPayloadEvent
(ICustomPacket<?> payload, CustomPayloadEvent.Context source) -
Method Summary
Modifier and TypeMethodDescriptionint
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
channel
-
payload
-
source
-
loginIndex
private final int loginIndex
-
-
Constructor Details
-
CustomPayloadEvent
public CustomPayloadEvent(ResourceLocation channel, FriendlyByteBuf payload, CustomPayloadEvent.Context source, int loginIndex) -
CustomPayloadEvent
-
-
Method Details
-
getChannel
-
getPayload
-
getLoginIndex
public int getLoginIndex() -
getSource
-