當前位置: 首頁>>代碼示例>>Java>>正文


Java EntityOcelot.isSitting方法代碼示例

本文整理匯總了Java中net.minecraft.entity.passive.EntityOcelot.isSitting方法的典型用法代碼示例。如果您正苦於以下問題:Java EntityOcelot.isSitting方法的具體用法?Java EntityOcelot.isSitting怎麽用?Java EntityOcelot.isSitting使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.entity.passive.EntityOcelot的用法示例。


在下文中一共展示了EntityOcelot.isSitting方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: isOcelotBlockingChest

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
@SuppressWarnings("rawtypes")
public static boolean isOcelotBlockingChest(World par0World, int par1, int par2, int par3)
{
    final Iterator var4 = par0World.getEntitiesWithinAABB(EntityOcelot.class, AxisAlignedBB.getBoundingBox(par1, par2 + 1, par3, par1 + 1, par2 + 2, par3 + 1)).iterator();
    EntityOcelot var6;

    do
    {
        if (!var4.hasNext())
        {
            return false;
        }

        final EntityOcelot var5 = (EntityOcelot) var4.next();
        var6 = var5;
    }
    while (!var6.isSitting());

    return true;
}
 
開發者ID:4Space,項目名稱:4Space-5,代碼行數:21,代碼來源:BlockTier2TreasureChest.java

示例2: func_149953_o

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
private static boolean func_149953_o(World p_149953_0_, int p_149953_1_, int p_149953_2_, int p_149953_3_) {
	Iterator iterator = p_149953_0_.getEntitiesWithinAABB(EntityOcelot.class,
			AxisAlignedBB.getBoundingBox(p_149953_1_, p_149953_2_ + 1, p_149953_3_, p_149953_1_ + 1, p_149953_2_ + 2, p_149953_3_ + 1)).iterator();
	EntityOcelot entityocelot1;

	do {
		if (!iterator.hasNext()) {
			return false;
		}

		EntityOcelot entityocelot = (EntityOcelot) iterator.next();
		entityocelot1 = entityocelot;
	} while (!entityocelot1.isSitting());

	return true;
}
 
開發者ID:mookie1097,項目名稱:NightfallMod,代碼行數:17,代碼來源:BlockNFChest.java

示例3: isOcelotBlockingChest

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
@SuppressWarnings("rawtypes")
public static boolean isOcelotBlockingChest(World par0World, int par1, int par2, int par3)
{
	final Iterator var4 = par0World.getEntitiesWithinAABB(EntityOcelot.class, AxisAlignedBB.getAABBPool().getAABB(par1, par2 + 1, par3, par1 + 1, par2 + 2, par3 + 1)).iterator();
	EntityOcelot var6;

	do
	{
		if (!var4.hasNext())
		{
			return false;
		}

		final EntityOcelot var5 = (EntityOcelot) var4.next();
		var6 = var5;
	}
	while (!var6.isSitting());

	return true;
}
 
開發者ID:4Space,項目名稱:4-Space-Legacy,代碼行數:21,代碼來源:SCVenusT3TreasureChest.java

示例4: isOcelotSittingOnChest

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
private boolean isOcelotSittingOnChest(World worldIn, BlockPos pos)
{
    for (Entity entity : worldIn.getEntitiesWithinAABB(EntityOcelot.class, new AxisAlignedBB((double)pos.getX(), (double)(pos.getY() + 1), (double)pos.getZ(), (double)(pos.getX() + 1), (double)(pos.getY() + 2), (double)(pos.getZ() + 1))))
    {
        EntityOcelot entityocelot = (EntityOcelot)entity;

        if (entityocelot.isSitting())
        {
            return true;
        }
    }

    return false;
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:15,代碼來源:BlockChest.java

示例5: isOcelotSittingOnChest

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
private boolean isOcelotSittingOnChest(World worldIn, BlockPos pos) {
	for (Entity entity : worldIn.getEntitiesWithinAABB(EntityOcelot.class,
			new AxisAlignedBB((double) pos.getX(), (double) (pos.getY() + 1), (double) pos.getZ(),
					(double) (pos.getX() + 1), (double) (pos.getY() + 2), (double) (pos.getZ() + 1)))) {
		EntityOcelot entityocelot = (EntityOcelot) entity;

		if (entityocelot.isSitting()) {
			return true;
		}
	}

	return false;
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:14,代碼來源:BlockChest.java

示例6: isOcelotSittingOnChest

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
private boolean isOcelotSittingOnChest(World worldIn, BlockPos pos) {
	for (Entity entity : worldIn.getEntitiesWithinAABB(EntityOcelot.class, new AxisAlignedBB(pos.getX(), pos.getY() + 1, pos.getZ(), pos.getX() + 1, pos.getY() + 2, pos.getZ() + 1))) {
		EntityOcelot entityocelot = (EntityOcelot) entity;

		if (entityocelot.isSitting()) { return true; }
	}

	return false;
}
 
開發者ID:tom5454,項目名稱:Toms-Mod,代碼行數:10,代碼來源:LimitableChest.java

示例7: isOcelotSittingOnChest

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
private static boolean isOcelotSittingOnChest(World worldIn, BlockPos pos)
{
	for (Entity entity : worldIn.getEntitiesWithinAABB(EntityOcelot.class, new AxisAlignedBB(pos.getX(), pos.getY() + 1, pos.getZ(), pos.getX() + 1, pos.getY() + 2, pos.getZ() + 1)))
	{
		EntityOcelot entityocelot = (EntityOcelot)entity;

		if (entityocelot.isSitting())
			return true;
	}

	return false;
}
 
開發者ID:Geforce132,項目名稱:SecurityCraft,代碼行數:13,代碼來源:BlockKeypadChest.java

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: 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.isSitting方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。