IvNetworkHelperServer.java 文件源码

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

项目:IvToolkit 作者:
public static void sendEEPUpdatePacket(Entity entity, String capabilityKey, EnumFacing facing, String context, SimpleNetworkWrapper network, Object... params)
{
    if (entity.world.isRemote)
        throw new UnsupportedOperationException();

    for (EntityPlayer player : ((WorldServer) entity.world).getEntityTracker().getTrackingPlayers(entity))
        sendEEPUpdatePacketToPlayer(entity, capabilityKey, facing, context, network, player, params);

    if (entity instanceof EntityPlayerMP) // Players don't 'track' themselves
        sendEEPUpdatePacketToPlayer(entity, capabilityKey, facing, context, network, (EntityPlayer) entity, params);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号