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 FriendlyByteBuf
private final int
private final Object
private final CustomPayloadEvent.Context
-
Constructor Summary
ConstructorDescriptionCustomPayloadEvent
(ResourceLocation channel, Object payload, CustomPayloadEvent.Context source, int loginIndex) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
channel
-
payload
-
data
-
source
-
loginIndex
private final int loginIndex
-
-
Constructor Details
-
CustomPayloadEvent
public CustomPayloadEvent(ResourceLocation channel, Object payload, CustomPayloadEvent.Context source, int loginIndex)
-
-
Method Details
-
getChannel
-
getPayload
-
getPayloadObject
-
getLoginIndex
public int getLoginIndex() -
getSource
-