本文整理了Java中net.minecraft.entity.Entity.getRotationYawHead()
方法的一些代码示例,展示了Entity.getRotationYawHead()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.getRotationYawHead()
方法的具体详情如下:
包路径:net.minecraft.entity.Entity
类名称:Entity
方法名:getRotationYawHead
暂无
代码示例来源:origin: ValkyrienWarfare/Valkyrien-Warfare-Revamped
@Override
public void onUpdate() {
super.onUpdate();
// System.out.println("test");
Entity rider = getRider();
if (rider != null) {
rotationYaw = rider.getRotationYawHead();
rotationPitch = rider.rotationPitch;
}
}
代码示例来源:origin: JurassiCraftTeam/JurassiCraft2
@Override
public void updatePassenger(Entity passenger) {
if (this.isPassenger(passenger)) {
Seat seat = null;
if (getSeatForEntity(passenger) != -1)
seat = this.seats[getSeatForEntity(passenger)];
Vec3d pos;
if (seat == null) {
pos = new Vec3d(this.posX, this.posY + this.height, this.posZ);
} else {
pos = seat.getPos();
}
passenger.setPosition(pos.x, pos.y, pos.z);
passenger.rotationYaw += this.rotationDelta;
passenger.setRotationYawHead(passenger.getRotationYawHead() + this.rotationDelta);
if (passenger instanceof EntityLivingBase) {
EntityLivingBase living = (EntityLivingBase) passenger;
living.renderYawOffset += (living.rotationYaw - living.renderYawOffset) * 0.6F;
}
}
}
代码示例来源:origin: JurassiCraftTeam/JurassiCraft2
@Override
public void updatePassenger(Entity passenger) {
if (this.isPassenger(passenger)) {
Seat seat = null;
if (getSeatForEntity(passenger) != -1)
seat = this.seats[getSeatForEntity(passenger)];
Vec3d pos;
if (seat == null) {
pos = new Vec3d(this.posX, this.posY + this.height, this.posZ);
} else {
pos = seat.getPos();
}
passenger.setPosition(pos.x, pos.y + this.interpRotationPitch.getCurrent() / 75D, pos.z);
passenger.rotationYaw += this.rotationDelta;
passenger.setRotationYawHead(passenger.getRotationYawHead() + this.rotationDelta);
if (passenger instanceof EntityLivingBase) {
EntityLivingBase living = (EntityLivingBase) passenger;
living.renderYawOffset += (living.rotationYaw - living.renderYawOffset) * 0.6F;
}
}
}
代码示例来源:origin: Mine-and-blade-admin/Battlegear2
renderHelmDecoration(0, SigilHelper.getHelm(code), 0);
}else{
renderHelmDecoration(par1Entity.getRotationYawHead(), SigilHelper.getHelm(code), 0);
renderHelmDecoration(0, SigilHelper.getHelm(code), 1);
}else{
renderHelmDecoration(par1Entity.getRotationYawHead(), SigilHelper.getHelm(code), 1);
renderHelmDecoration(0, SigilHelper.getHelm(code), 1);
}else{
renderHelmDecoration(par1Entity.getRotationYawHead(), SigilHelper.getHelm(code), 1);
内容来源于网络,如有侵权,请联系作者删除!