本文整理匯總了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_);
}