当前位置: 首页>>代码示例>>Java>>正文


Java Packet71Weather类代码示例

本文整理汇总了Java中net.minecraft.network.packet.Packet71Weather的典型用法代码示例。如果您正苦于以下问题:Java Packet71Weather类的具体用法?Java Packet71Weather怎么用?Java Packet71Weather使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Packet71Weather类属于net.minecraft.network.packet包,在下文中一共展示了Packet71Weather类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleWeather

import net.minecraft.network.packet.Packet71Weather; //导入依赖的package包/类
/**
 * Handles weather packet
 */
public void handleWeather(Packet71Weather par1Packet71Weather)
{
    double d0 = (double)par1Packet71Weather.posX / 32.0D;
    double d1 = (double)par1Packet71Weather.posY / 32.0D;
    double d2 = (double)par1Packet71Weather.posZ / 32.0D;
    EntityLightningBolt entitylightningbolt = null;

    if (par1Packet71Weather.isLightningBolt == 1)
    {
        entitylightningbolt = new EntityLightningBolt(this.worldClient, d0, d1, d2);
    }

    if (entitylightningbolt != null)
    {
        entitylightningbolt.serverPosX = par1Packet71Weather.posX;
        entitylightningbolt.serverPosY = par1Packet71Weather.posY;
        entitylightningbolt.serverPosZ = par1Packet71Weather.posZ;
        entitylightningbolt.rotationYaw = 0.0F;
        entitylightningbolt.rotationPitch = 0.0F;
        entitylightningbolt.entityId = par1Packet71Weather.entityID;
        this.worldClient.addWeatherEffect(entitylightningbolt);
    }
}
 
开发者ID:smallcampus,项目名称:BetterNutritionMod,代码行数:27,代码来源:NetClientHandler.java

示例2: func_72942_c

import net.minecraft.network.packet.Packet71Weather; //导入依赖的package包/类
public boolean func_72942_c(Entity p_72942_1_) {
   if(super.func_72942_c(p_72942_1_)) {
      this.field_73061_a.func_71203_ab().func_72393_a(p_72942_1_.field_70165_t, p_72942_1_.field_70163_u, p_72942_1_.field_70161_v, 512.0D, this.field_73011_w.field_76574_g, new Packet71Weather(p_72942_1_));
      return true;
   } else {
      return false;
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:9,代码来源:WorldServer.java

示例3: addWeatherEffect

import net.minecraft.network.packet.Packet71Weather; //导入依赖的package包/类
/**
 * adds a lightning bolt to the list of lightning bolts in this world.
 */
public boolean addWeatherEffect(Entity par1Entity)
{
    if (super.addWeatherEffect(par1Entity))
    {
        this.mcServer.getConfigurationManager().sendToAllNear(par1Entity.posX, par1Entity.posY, par1Entity.posZ, 512.0D, this.provider.dimensionId, new Packet71Weather(par1Entity));
        return true;
    }
    else
    {
        return false;
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:16,代码来源:WorldServer.java

示例4: handleWeather

import net.minecraft.network.packet.Packet71Weather; //导入依赖的package包/类
@Override
public void handleWeather(Packet71Weather par1Packet71Weather)
{
	nch.handleWeather(par1Packet71Weather);
	
}
 
开发者ID:xurei,项目名称:forge_world_downloader,代码行数:7,代码来源:WDLNetClientHandler.java

示例5: func_72508_a

import net.minecraft.network.packet.Packet71Weather; //导入依赖的package包/类
public void func_72508_a(Packet71Weather p_72508_1_) {
   this.func_72509_a(p_72508_1_);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:NetHandler.java


注:本文中的net.minecraft.network.packet.Packet71Weather类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。