本文整理汇总了Java中net.minecraft.network.packet.Packet35EntityHeadRotation类的典型用法代码示例。如果您正苦于以下问题:Java Packet35EntityHeadRotation类的具体用法?Java Packet35EntityHeadRotation怎么用?Java Packet35EntityHeadRotation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Packet35EntityHeadRotation类属于net.minecraft.network.packet包,在下文中一共展示了Packet35EntityHeadRotation类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_72478_a
import net.minecraft.network.packet.Packet35EntityHeadRotation; //导入依赖的package包/类
public void func_72478_a(Packet35EntityHeadRotation p_72478_1_) {
Entity var2 = this.func_72545_a(p_72478_1_.field_73383_a);
if(var2 != null) {
float var3 = (float)(p_72478_1_.field_73382_b * 360) / 256.0F;
var2.func_70034_d(var3);
}
}
示例2: handleEntityHeadRotation
import net.minecraft.network.packet.Packet35EntityHeadRotation; //导入依赖的package包/类
public void handleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
{
Entity entity = this.getEntityByID(par1Packet35EntityHeadRotation.entityId);
if (entity != null)
{
float f = (float)(par1Packet35EntityHeadRotation.headRotationYaw * 360) / 256.0F;
entity.setRotationYawHead(f);
}
}
示例3: handleEntityHeadRotation
import net.minecraft.network.packet.Packet35EntityHeadRotation; //导入依赖的package包/类
@Override
public void handleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
{
nch.handleEntityHeadRotation(par1Packet35EntityHeadRotation);
}
示例4: func_72478_a
import net.minecraft.network.packet.Packet35EntityHeadRotation; //导入依赖的package包/类
public void func_72478_a(Packet35EntityHeadRotation p_72478_1_) {
this.func_72509_a(p_72478_1_);
}