Package | Description |
---|---|
net.minecraftforge.fml.common.network.simpleimpl |
Modifier and Type | Interface and Description |
---|---|
interface |
IMessageHandler<REQ extends IMessage,REPLY extends IMessage>
A message handler based on
IMessage . |
interface |
IMessageHandler<REQ extends IMessage,REPLY extends IMessage>
A message handler based on
IMessage . |
class |
SimpleChannelHandlerWrapper<REQ extends IMessage,REPLY extends IMessage> |
class |
SimpleChannelHandlerWrapper<REQ extends IMessage,REPLY extends IMessage> |
Modifier and Type | Method and Description |
---|---|
private <REQ extends IMessage,REPLY extends IMessage,NH extends INetHandler> |
SimpleNetworkWrapper.addClientHandlerAfter(FMLEmbeddedChannel channel,
java.lang.String type,
IMessageHandler<? super REQ,? extends REPLY> messageHandler,
java.lang.Class<REQ> requestType) |
private <REQ extends IMessage,REPLY extends IMessage,NH extends INetHandler> |
SimpleNetworkWrapper.addClientHandlerAfter(FMLEmbeddedChannel channel,
java.lang.String type,
IMessageHandler<? super REQ,? extends REPLY> messageHandler,
java.lang.Class<REQ> requestType) |
private <REQ extends IMessage,REPLY extends IMessage,NH extends INetHandler> |
SimpleNetworkWrapper.addServerHandlerAfter(FMLEmbeddedChannel channel,
java.lang.String type,
IMessageHandler<? super REQ,? extends REPLY> messageHandler,
java.lang.Class<REQ> requestType) |
private <REQ extends IMessage,REPLY extends IMessage,NH extends INetHandler> |
SimpleNetworkWrapper.addServerHandlerAfter(FMLEmbeddedChannel channel,
java.lang.String type,
IMessageHandler<? super REQ,? extends REPLY> messageHandler,
java.lang.Class<REQ> requestType) |
private <REPLY extends IMessage,REQ extends IMessage> |
SimpleNetworkWrapper.getHandlerWrapper(IMessageHandler<? super REQ,? extends REPLY> messageHandler,
Side side,
java.lang.Class<REQ> requestType) |
private <REPLY extends IMessage,REQ extends IMessage> |
SimpleNetworkWrapper.getHandlerWrapper(IMessageHandler<? super REQ,? extends REPLY> messageHandler,
Side side,
java.lang.Class<REQ> requestType) |
(package private) static <REQ extends IMessage,REPLY extends IMessage> |
SimpleNetworkWrapper.instantiate(java.lang.Class<? extends IMessageHandler<? super REQ,? extends REPLY>> handler) |
(package private) static <REQ extends IMessage,REPLY extends IMessage> |
SimpleNetworkWrapper.instantiate(java.lang.Class<? extends IMessageHandler<? super REQ,? extends REPLY>> handler) |
<REQ extends IMessage,REPLY extends IMessage> |
SimpleNetworkWrapper.registerMessage(java.lang.Class<? extends IMessageHandler<REQ,REPLY>> messageHandler,
java.lang.Class<REQ> requestMessageType,
int discriminator,
Side side)
Register a message and it's associated handler.
|
<REQ extends IMessage,REPLY extends IMessage> |
SimpleNetworkWrapper.registerMessage(java.lang.Class<? extends IMessageHandler<REQ,REPLY>> messageHandler,
java.lang.Class<REQ> requestMessageType,
int discriminator,
Side side)
Register a message and it's associated handler.
|
<REQ extends IMessage,REPLY extends IMessage> |
SimpleNetworkWrapper.registerMessage(IMessageHandler<? super REQ,? extends REPLY> messageHandler,
java.lang.Class<REQ> requestMessageType,
int discriminator,
Side side)
Register a message and it's associated handler.
|
<REQ extends IMessage,REPLY extends IMessage> |
SimpleNetworkWrapper.registerMessage(IMessageHandler<? super REQ,? extends REPLY> messageHandler,
java.lang.Class<REQ> requestMessageType,
int discriminator,
Side side)
Register a message and it's associated handler.
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleIndexedCodec.decodeInto(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf source,
IMessage msg) |
void |
SimpleIndexedCodec.encodeInto(io.netty.channel.ChannelHandlerContext ctx,
IMessage msg,
io.netty.buffer.ByteBuf target) |
Packet<?> |
SimpleNetworkWrapper.getPacketFrom(IMessage message)
Construct a minecraft packet from the supplied message.
|
void |
SimpleNetworkWrapper.sendTo(IMessage message,
EntityPlayerMP player)
Send this message to the specified player.
|
void |
SimpleNetworkWrapper.sendToAll(IMessage message)
Send this message to everyone.
|
void |
SimpleNetworkWrapper.sendToAllAround(IMessage message,
NetworkRegistry.TargetPoint point)
Send this message to everyone within a certain range of a point.
|
void |
SimpleNetworkWrapper.sendToAllTracking(IMessage message,
Entity entity)
Sends this message to everyone tracking an entity.
|
void |
SimpleNetworkWrapper.sendToAllTracking(IMessage message,
NetworkRegistry.TargetPoint point)
Sends this message to everyone tracking a point.
|
void |
SimpleNetworkWrapper.sendToDimension(IMessage message,
int dimensionId)
Send this message to everyone within the supplied dimension.
|
void |
SimpleNetworkWrapper.sendToServer(IMessage message)
Send this message to the server.
|