CSNetworkHelper.java 文件源码

java
阅读 18 收藏 0 点赞 0 评论 0

项目:CraftStudioAPI 作者:
/**
 * Send the given message through the network.
 * 
 * @param message
 *            The message to send.
 */
public static void sendIAnimatedEvent(IAnimatedEventMessage message) {
    if (message.animated.isWorldRemote())
        // If we are on client, we send a server message to the server.
        CraftStudioApi.NETWORK.sendToServer(new ServerIAnimatedEventMessage(message));
    else
        // If we are on server, we send a client message to the clients in
        // range.
        CraftStudioApi.NETWORK.sendToAllAround(new ClientIAnimatedEventMessage(message), new TargetPoint(message.animated.getDimension(),
                message.animated.getX(), message.animated.getY(), message.animated.getZ(), CSNetworkHelper.EVENT_RANGE));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号