类 NetworkHandler
java.lang.Object
top.r3944realms.superleadrope.network.NetworkHandler
The type Network handler.
-
字段概要
字段修饰符和类型字段说明static final net.minecraftforge.network.simple.SimpleChannelThe constant INSTANCE. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidregister()Register.static <MSG> voidsendToAllPlayer(MSG message) Send to all player.static <MSG> voidsendToPlayer(MSG message, net.minecraft.server.level.ServerPlayer player) Send to player.static <MSG,T> void sendToPlayer(MSG message, T entity, net.minecraftforge.network.PacketDistributor<T> packetDistributor) Send to player.
-
字段详细资料
-
INSTANCE
public static final net.minecraftforge.network.simple.SimpleChannel INSTANCEThe constant INSTANCE.
-
-
构造器详细资料
-
NetworkHandler
public NetworkHandler()
-
-
方法详细资料
-
register
public static void register()Register. -
sendToPlayer
public static <MSG> void sendToPlayer(MSG message, net.minecraft.server.level.ServerPlayer player) Send to player.- 类型参数:
MSG- the type parameter- 参数:
message- the messageplayer- the player
-
sendToAllPlayer
public static <MSG> void sendToAllPlayer(MSG message) Send to all player.- 类型参数:
MSG- the type parameter- 参数:
message- the message
-
sendToPlayer
public static <MSG,T> void sendToPlayer(MSG message, T entity, net.minecraftforge.network.PacketDistributor<T> packetDistributor) Send to player.- 类型参数:
MSG- the type parameterT- the type parameter- 参数:
message- the messageentity- the entitypacketDistributor- the packet distributor
-