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


Java EntityOcelot.isSneaking方法代码示例

本文整理汇总了Java中net.minecraft.entity.passive.EntityOcelot.isSneaking方法的典型用法代码示例。如果您正苦于以下问题:Java EntityOcelot.isSneaking方法的具体用法?Java EntityOcelot.isSneaking怎么用?Java EntityOcelot.isSneaking使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.entity.passive.EntityOcelot的用法示例。


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

示例1: setLivingAnimations

import net.minecraft.entity.passive.EntityOcelot; //导入方法依赖的package包/类
@Override
public void setLivingAnimations(EntityLivingBase par1EntityLiving, float par2, float par3, float par4) {
	super.setLivingAnimations(par1EntityLiving, par2, par3, par4);
	EntityOcelot var5 = (EntityOcelot)par1EntityLiving;
	this.helmet.rotationPointY = 15.0F;
	this.helmet.rotationPointZ = -9.0F;
	if (var5.isSneaking()) {
		this.helmet.rotationPointY += 2.0F;
	} else if (var5.isSitting()) {
		this.helmet.rotationPointY += -3.3F;
		++this.helmet.rotationPointZ;
	}
}
 
开发者ID:AlexDGr8r,项目名称:MeteorsMod,代码行数:14,代码来源:ModelCometKitty.java

示例2: setLivingAnimations

import net.minecraft.entity.passive.EntityOcelot; //导入方法依赖的package包/类
/**
 * Used for easily adding entity-dependent animations. The second and third float params here are the same second
 * and third as in the setRotationAngles method.
 */
public void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float p_78086_2_, float p_78086_3_, float partialTickTime)
{
    EntityOcelot entityocelot = (EntityOcelot)entitylivingbaseIn;
    this.ocelotBody.rotationPointY = 12.0F;
    this.ocelotBody.rotationPointZ = -10.0F;
    this.ocelotHead.rotationPointY = 15.0F;
    this.ocelotHead.rotationPointZ = -9.0F;
    this.ocelotTail.rotationPointY = 15.0F;
    this.ocelotTail.rotationPointZ = 8.0F;
    this.ocelotTail2.rotationPointY = 20.0F;
    this.ocelotTail2.rotationPointZ = 14.0F;
    this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 13.8F;
    this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -5.0F;
    this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 18.0F;
    this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 5.0F;
    this.ocelotTail.rotateAngleX = 0.9F;

    if (entityocelot.isSneaking())
    {
        ++this.ocelotBody.rotationPointY;
        this.ocelotHead.rotationPointY += 2.0F;
        ++this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointY += -4.0F;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.field_78163_i = 0;
    }
    else if (entityocelot.isSprinting())
    {
        this.ocelotTail2.rotationPointY = this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.field_78163_i = 2;
    }
    else if (entityocelot.isSitting())
    {
        this.ocelotBody.rotateAngleX = ((float)Math.PI / 4F);
        this.ocelotBody.rotationPointY += -4.0F;
        this.ocelotBody.rotationPointZ += 5.0F;
        this.ocelotHead.rotationPointY += -3.3F;
        ++this.ocelotHead.rotationPointZ;
        this.ocelotTail.rotationPointY += 8.0F;
        this.ocelotTail.rotationPointZ += -2.0F;
        this.ocelotTail2.rotationPointY += 2.0F;
        this.ocelotTail2.rotationPointZ += -0.8F;
        this.ocelotTail.rotateAngleX = 1.7278761F;
        this.ocelotTail2.rotateAngleX = 2.670354F;
        this.ocelotFrontLeftLeg.rotateAngleX = this.ocelotFrontRightLeg.rotateAngleX = -0.15707964F;
        this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 15.8F;
        this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -7.0F;
        this.ocelotBackLeftLeg.rotateAngleX = this.ocelotBackRightLeg.rotateAngleX = -((float)Math.PI / 2F);
        this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 21.0F;
        this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 1.0F;
        this.field_78163_i = 3;
    }
    else
    {
        this.field_78163_i = 1;
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:67,代码来源:ModelOcelot.java

示例3: setLivingAnimations

import net.minecraft.entity.passive.EntityOcelot; //导入方法依赖的package包/类
/**
 * Used for easily adding entity-dependent animations. The second and third float params here are the same second
 * and third as in the setRotationAngles method.
 */
public void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float p_78086_2_, float p_78086_3_, float partialTickTime)
{
    EntityOcelot entityocelot = (EntityOcelot)entitylivingbaseIn;
    this.ocelotBody.rotationPointY = 12.0F;
    this.ocelotBody.rotationPointZ = -10.0F;
    this.ocelotHead.rotationPointY = 15.0F;
    this.ocelotHead.rotationPointZ = -9.0F;
    this.ocelotTail.rotationPointY = 15.0F;
    this.ocelotTail.rotationPointZ = 8.0F;
    this.ocelotTail2.rotationPointY = 20.0F;
    this.ocelotTail2.rotationPointZ = 14.0F;
    this.ocelotFrontLeftLeg.rotationPointY = 13.8F;
    this.ocelotFrontLeftLeg.rotationPointZ = -5.0F;
    this.ocelotFrontRightLeg.rotationPointY = 13.8F;
    this.ocelotFrontRightLeg.rotationPointZ = -5.0F;
    this.ocelotBackLeftLeg.rotationPointY = 18.0F;
    this.ocelotBackLeftLeg.rotationPointZ = 5.0F;
    this.ocelotBackRightLeg.rotationPointY = 18.0F;
    this.ocelotBackRightLeg.rotationPointZ = 5.0F;
    this.ocelotTail.rotateAngleX = 0.9F;

    if (entityocelot.isSneaking())
    {
        ++this.ocelotBody.rotationPointY;
        this.ocelotHead.rotationPointY += 2.0F;
        ++this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointY += -4.0F;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.state = 0;
    }
    else if (entityocelot.isSprinting())
    {
        this.ocelotTail2.rotationPointY = this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.state = 2;
    }
    else if (entityocelot.isSitting())
    {
        this.ocelotBody.rotateAngleX = ((float)Math.PI / 4F);
        this.ocelotBody.rotationPointY += -4.0F;
        this.ocelotBody.rotationPointZ += 5.0F;
        this.ocelotHead.rotationPointY += -3.3F;
        ++this.ocelotHead.rotationPointZ;
        this.ocelotTail.rotationPointY += 8.0F;
        this.ocelotTail.rotationPointZ += -2.0F;
        this.ocelotTail2.rotationPointY += 2.0F;
        this.ocelotTail2.rotationPointZ += -0.8F;
        this.ocelotTail.rotateAngleX = 1.7278761F;
        this.ocelotTail2.rotateAngleX = 2.670354F;
        this.ocelotFrontLeftLeg.rotateAngleX = -0.15707964F;
        this.ocelotFrontLeftLeg.rotationPointY = 15.8F;
        this.ocelotFrontLeftLeg.rotationPointZ = -7.0F;
        this.ocelotFrontRightLeg.rotateAngleX = -0.15707964F;
        this.ocelotFrontRightLeg.rotationPointY = 15.8F;
        this.ocelotFrontRightLeg.rotationPointZ = -7.0F;
        this.ocelotBackLeftLeg.rotateAngleX = -((float)Math.PI / 2F);
        this.ocelotBackLeftLeg.rotationPointY = 21.0F;
        this.ocelotBackLeftLeg.rotationPointZ = 1.0F;
        this.ocelotBackRightLeg.rotateAngleX = -((float)Math.PI / 2F);
        this.ocelotBackRightLeg.rotationPointY = 21.0F;
        this.ocelotBackRightLeg.rotationPointZ = 1.0F;
        this.state = 3;
    }
    else
    {
        this.state = 1;
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:77,代码来源:ModelOcelot.java

示例4: setLivingAnimations

import net.minecraft.entity.passive.EntityOcelot; //导入方法依赖的package包/类
/**
 * Used for easily adding entity-dependent animations. The second and third float params here are the same second
 * and third as in the setRotationAngles method.
 */
public void setLivingAnimations(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4)
{
    EntityOcelot var5 = (EntityOcelot)par1EntityLivingBase;
    this.ocelotBody.rotationPointY = 12.0F;
    this.ocelotBody.rotationPointZ = -10.0F;
    this.ocelotHead.rotationPointY = 15.0F;
    this.ocelotHead.rotationPointZ = -9.0F;
    this.ocelotTail.rotationPointY = 15.0F;
    this.ocelotTail.rotationPointZ = 8.0F;
    this.ocelotTail2.rotationPointY = 20.0F;
    this.ocelotTail2.rotationPointZ = 14.0F;
    this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 13.8F;
    this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -5.0F;
    this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 18.0F;
    this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 5.0F;
    this.ocelotTail.rotateAngleX = 0.9F;

    if (var5.isSneaking())
    {
        ++this.ocelotBody.rotationPointY;
        this.ocelotHead.rotationPointY += 2.0F;
        ++this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointY += -4.0F;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.field_78163_i = 0;
    }
    else if (var5.isSprinting())
    {
        this.ocelotTail2.rotationPointY = this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.field_78163_i = 2;
    }
    else if (var5.isSitting())
    {
        this.ocelotBody.rotateAngleX = ((float)Math.PI / 4F);
        this.ocelotBody.rotationPointY += -4.0F;
        this.ocelotBody.rotationPointZ += 5.0F;
        this.ocelotHead.rotationPointY += -3.3F;
        ++this.ocelotHead.rotationPointZ;
        this.ocelotTail.rotationPointY += 8.0F;
        this.ocelotTail.rotationPointZ += -2.0F;
        this.ocelotTail2.rotationPointY += 2.0F;
        this.ocelotTail2.rotationPointZ += -0.8F;
        this.ocelotTail.rotateAngleX = 1.7278761F;
        this.ocelotTail2.rotateAngleX = 2.670354F;
        this.ocelotFrontLeftLeg.rotateAngleX = this.ocelotFrontRightLeg.rotateAngleX = -0.15707964F;
        this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 15.8F;
        this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -7.0F;
        this.ocelotBackLeftLeg.rotateAngleX = this.ocelotBackRightLeg.rotateAngleX = -((float)Math.PI / 2F);
        this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 21.0F;
        this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 1.0F;
        this.field_78163_i = 3;
    }
    else
    {
        this.field_78163_i = 1;
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:67,代码来源:ModelOcelot.java

示例5: setLivingAnimations

import net.minecraft.entity.passive.EntityOcelot; //导入方法依赖的package包/类
public void setLivingAnimations(EntityLivingBase p_78086_1_, float p_78086_2_, float p_78086_3_, float p_78086_4_)
{
    EntityOcelot entityocelot = (EntityOcelot)p_78086_1_;
    this.ocelotBody.rotationPointY = 12.0F;
    this.ocelotBody.rotationPointZ = -10.0F;
    this.ocelotHead.rotationPointY = 15.0F;
    this.ocelotHead.rotationPointZ = -9.0F;
    this.ocelotTail.rotationPointY = 15.0F;
    this.ocelotTail.rotationPointZ = 8.0F;
    this.ocelotTail2.rotationPointY = 20.0F;
    this.ocelotTail2.rotationPointZ = 14.0F;
    this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 13.8F;
    this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -5.0F;
    this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 18.0F;
    this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 5.0F;
    this.ocelotTail.rotateAngleX = 0.9F;

    if (entityocelot.isSneaking())
    {
        ++this.ocelotBody.rotationPointY;
        this.ocelotHead.rotationPointY += 2.0F;
        ++this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointY += -4.0F;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.field_78163_i = 0;
    }
    else if (entityocelot.isSprinting())
    {
        this.ocelotTail2.rotationPointY = this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.field_78163_i = 2;
    }
    else if (entityocelot.isSitting())
    {
        this.ocelotBody.rotateAngleX = ((float)Math.PI / 4F);
        this.ocelotBody.rotationPointY += -4.0F;
        this.ocelotBody.rotationPointZ += 5.0F;
        this.ocelotHead.rotationPointY += -3.3F;
        ++this.ocelotHead.rotationPointZ;
        this.ocelotTail.rotationPointY += 8.0F;
        this.ocelotTail.rotationPointZ += -2.0F;
        this.ocelotTail2.rotationPointY += 2.0F;
        this.ocelotTail2.rotationPointZ += -0.8F;
        this.ocelotTail.rotateAngleX = 1.7278761F;
        this.ocelotTail2.rotateAngleX = 2.670354F;
        this.ocelotFrontLeftLeg.rotateAngleX = this.ocelotFrontRightLeg.rotateAngleX = -0.15707964F;
        this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 15.8F;
        this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -7.0F;
        this.ocelotBackLeftLeg.rotateAngleX = this.ocelotBackRightLeg.rotateAngleX = -((float)Math.PI / 2F);
        this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 21.0F;
        this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 1.0F;
        this.field_78163_i = 3;
    }
    else
    {
        this.field_78163_i = 1;
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:63,代码来源:ModelOcelot.java

示例6: setLivingAnimations

import net.minecraft.entity.passive.EntityOcelot; //导入方法依赖的package包/类
/**
 * Used for easily adding entity-dependent animations. The second and third float params here are the same second
 * and third as in the setRotationAngles method.
 */
public void setLivingAnimations(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4)
{
    EntityOcelot entityocelot = (EntityOcelot)par1EntityLivingBase;
    this.ocelotBody.rotationPointY = 12.0F;
    this.ocelotBody.rotationPointZ = -10.0F;
    this.ocelotHead.rotationPointY = 15.0F;
    this.ocelotHead.rotationPointZ = -9.0F;
    this.ocelotTail.rotationPointY = 15.0F;
    this.ocelotTail.rotationPointZ = 8.0F;
    this.ocelotTail2.rotationPointY = 20.0F;
    this.ocelotTail2.rotationPointZ = 14.0F;
    this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 13.8F;
    this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -5.0F;
    this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 18.0F;
    this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 5.0F;
    this.ocelotTail.rotateAngleX = 0.9F;

    if (entityocelot.isSneaking())
    {
        ++this.ocelotBody.rotationPointY;
        this.ocelotHead.rotationPointY += 2.0F;
        ++this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointY += -4.0F;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.field_78163_i = 0;
    }
    else if (entityocelot.isSprinting())
    {
        this.ocelotTail2.rotationPointY = this.ocelotTail.rotationPointY;
        this.ocelotTail2.rotationPointZ += 2.0F;
        this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F);
        this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F);
        this.field_78163_i = 2;
    }
    else if (entityocelot.isSitting())
    {
        this.ocelotBody.rotateAngleX = ((float)Math.PI / 4F);
        this.ocelotBody.rotationPointY += -4.0F;
        this.ocelotBody.rotationPointZ += 5.0F;
        this.ocelotHead.rotationPointY += -3.3F;
        ++this.ocelotHead.rotationPointZ;
        this.ocelotTail.rotationPointY += 8.0F;
        this.ocelotTail.rotationPointZ += -2.0F;
        this.ocelotTail2.rotationPointY += 2.0F;
        this.ocelotTail2.rotationPointZ += -0.8F;
        this.ocelotTail.rotateAngleX = 1.7278761F;
        this.ocelotTail2.rotateAngleX = 2.670354F;
        this.ocelotFrontLeftLeg.rotateAngleX = this.ocelotFrontRightLeg.rotateAngleX = -0.15707964F;
        this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 15.8F;
        this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -7.0F;
        this.ocelotBackLeftLeg.rotateAngleX = this.ocelotBackRightLeg.rotateAngleX = -((float)Math.PI / 2F);
        this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 21.0F;
        this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 1.0F;
        this.field_78163_i = 3;
    }
    else
    {
        this.field_78163_i = 1;
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:67,代码来源:ModelOcelot.java


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