Examples of IHoldableItem


Examples of micdoodle8.mods.galacticraft.api.item.IHoldableItem

            this.bipedRightArm.rotateAngleZ -= (float) Math.PI / 10;
        }

        if (player.inventory.getCurrentItem() != null && player.inventory.getCurrentItem().getItem() instanceof IHoldableItem)
        {
            IHoldableItem holdableItem = (IHoldableItem) player.inventory.getCurrentItem().getItem();

            if (holdableItem.shouldHoldLeftHandUp(player))
            {
                this.bipedLeftArm.rotateAngleX = 0;
                this.bipedLeftArm.rotateAngleZ = 0;

                this.bipedLeftArm.rotateAngleX += (float) Math.PI + 0.3;
                this.bipedLeftArm.rotateAngleZ += (float) Math.PI / 10;
            }

            if (holdableItem.shouldHoldRightHandUp(player))
            {
                this.bipedRightArm.rotateAngleX = 0;
                this.bipedRightArm.rotateAngleZ = 0;

                this.bipedRightArm.rotateAngleX += (float) Math.PI + 0.3;
                this.bipedRightArm.rotateAngleZ -= (float) Math.PI / 10;
            }

            if (player.onGround && holdableItem.shouldCrouch(player))
            {
                this.bipedBody.rotateAngleX = 0.5F;
                this.bipedRightLeg.rotationPointZ = 4.0F;
                this.bipedLeftLeg.rotationPointZ = 4.0F;
                this.bipedRightLeg.rotationPointY = 9.0F;
View Full Code Here

Examples of micdoodle8.mods.galacticraft.api.item.IHoldableItem

            this.modelPlayer.bipedRightArm.rotateAngleZ -= (float) Math.PI / 10;
        }

        if (player.inventory.getCurrentItem() != null && player.inventory.getCurrentItem().getItem() instanceof IHoldableItem)
        {
            IHoldableItem holdableItem = (IHoldableItem) player.inventory.getCurrentItem().getItem();

            if (holdableItem.shouldHoldLeftHandUp(player))
            {
                this.modelPlayer.bipedLeftArm.rotateAngleX = 0;
                this.modelPlayer.bipedLeftArm.rotateAngleZ = 0;

                this.modelPlayer.bipedLeftArm.rotateAngleX += (float) Math.PI + 0.3;
                this.modelPlayer.bipedLeftArm.rotateAngleZ += (float) Math.PI / 10;
            }

            if (holdableItem.shouldHoldRightHandUp(player))
            {
                this.modelPlayer.bipedRightArm.rotateAngleX = 0;
                this.modelPlayer.bipedRightArm.rotateAngleZ = 0;

                this.modelPlayer.bipedRightArm.rotateAngleX += (float) Math.PI + 0.3;
                this.modelPlayer.bipedRightArm.rotateAngleZ -= (float) Math.PI / 10;
            }

            if (player.onGround && holdableItem.shouldCrouch(player))
            {
                this.modelPlayer.bipedBody.rotateAngleX = 0.35F;
                this.modelPlayer.bipedRightLeg.rotationPointZ = 4.0F;
                this.modelPlayer.bipedLeftLeg.rotationPointZ = 4.0F;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.