类 NetBaseHandler
java.lang.Object
committee.nova.mods.avaritia.api.init.handler.NetBaseHandler
Description:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明net.minecraftforge.network.simple.SimpleChannel<T extends IPacket<T>>
void<M> voidreply(M message, net.minecraftforge.network.NetworkEvent.Context context) <M> voidsend(net.minecraftforge.network.PacketDistributor.PacketTarget target, M message) <M> voidsendTo(M message, net.minecraft.network.Connection manager, net.minecraftforge.network.NetworkDirection direction) <M> voidsendToServer(M message)
-
字段详细资料
-
id
public int id
-
-
构造器详细资料
-
NetBaseHandler
public NetBaseHandler(net.minecraft.resources.ResourceLocation id)
-
-
方法详细资料
-
getChannel
public net.minecraftforge.network.simple.SimpleChannel getChannel() -
register
-
sendToServer
public <M> void sendToServer(M message) -
sendTo
public <M> void sendTo(M message, net.minecraft.network.Connection manager, net.minecraftforge.network.NetworkDirection direction) -
send
public <M> void send(net.minecraftforge.network.PacketDistributor.PacketTarget target, M message) -
reply
public <M> void reply(M message, net.minecraftforge.network.NetworkEvent.Context context)
-