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 ClassesNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocationprivate final intprivate final FriendlyByteBufprivate final CustomPayloadEvent.Context - 
Constructor Summary
ConstructorsConstructorDescriptionCustomPayloadEvent(ResourceLocation channel, FriendlyByteBuf payload, CustomPayloadEvent.Context source, int loginIndex) CustomPayloadEvent(ICustomPacket<?> payload, CustomPayloadEvent.Context source)  - 
Method Summary
Modifier and TypeMethodDescriptionintMethods 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
 
 -