本文整理汇总了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);
}
}
示例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;
}
}
示例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;
}
}
示例4: handleWeather
import net.minecraft.network.packet.Packet71Weather; //导入依赖的package包/类
@Override
public void handleWeather(Packet71Weather par1Packet71Weather)
{
nch.handleWeather(par1Packet71Weather);
}
示例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_);
}