Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecdcaeb authored Oct 26, 2024
1 parent 19f3e02 commit 03b7f51
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
this.field_178723_h.field_78795_f = (float)(-Math.PI / 2) + this.field_78116_c.field_78795_f;
this.field_178724_i.field_78795_f = (float)(-Math.PI / 2) + this.field_78116_c.field_78795_f;
}
+ this.field_187075_l.setRotationAnglesLeftHand(this,p_78087_1_,p_78087_2_,p_78087_3_,p_78087_4_,p_78087_5_,p_78087_6_,p_78087_7_);
+ this.field_187076_m.setRotationAnglesRightHand(this,p_78087_1_,p_78087_2_,p_78087_3_,p_78087_4_,p_78087_5_,p_78087_6_,p_78087_7_);
+ this.field_187075_l.setRotationAnglesLeftHand(this,p_78087_1_, p_78087_2_, p_78087_3_, p_78087_4_, p_78087_5_, p_78087_6_, p_78087_7_);
+ this.field_187076_m.setRotationAnglesRightHand(this,p_78087_1_, p_78087_2_, p_78087_3_, p_78087_4_, p_78087_5_, p_78087_6_, p_78087_7_);

func_178685_a(this.field_78116_c, this.field_178720_f);
}
Expand All @@ -22,7 +22,7 @@
BOW_AND_ARROW;
+ //=======FORGE START=======//
+ private final net.minecraftforge.client.model.IForgeArmPose pose;
+ ArmPose(net.minecraftforge.client.model.IForgeArmPose poseIn){pose=poseIn;}
+ ArmPose(net.minecraftforge.client.model.IForgeArmPose poseIn){pose = poseIn;}
+ ArmPose(){this(net.minecraftforge.client.model.IForgeArmPose.EMPTY);}
+ @Override
+ public void setRotationAnglesLeftHand(net.minecraft.client.model.ModelBiped modelBiped, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, net.minecraft.entity.Entity entityIn) {pose.setRotationAnglesLeftHand(modelBiped, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor, entityIn);}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
if (p_177137_1_.func_184605_cv() > 0)
{
EnumAction enumaction = itemstack.func_77975_n();
+ modelbiped$armpose=enumaction.getBipedArmPose();
+ modelbiped$armpose = enumaction.getBipedArmPose();

if (enumaction == EnumAction.BLOCK)
{
@@ -123,11 +126,17 @@
if (p_177137_1_.func_184605_cv() > 0)
{
EnumAction enumaction1 = itemstack1.func_77975_n();
+ modelbiped$armpose1=enumaction1.getBipedArmPose();
+ modelbiped$armpose1 = enumaction1.getBipedArmPose();

if (enumaction1 == EnumAction.BLOCK)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@SideOnly(Side.CLIENT)
public interface IForgeArmPose {
IForgeArmPose EMPTY=new IForgeArmPose() {};
IForgeArmPose EMPTY = new IForgeArmPose() {};
default void setRotationAnglesLeftHand(ModelBiped modelBiped,float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn) {
}
default void setRotationAnglesRightHand(ModelBiped modelBiped,float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/minecraftforge/common/IForgeAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import net.minecraftforge.fml.relauncher.SideOnly;

public interface IForgeAction {
IForgeAction EMPTY=new IForgeAction() {};
IForgeAction EMPTY = new IForgeAction() {};

/**
* @return The ArmPose used for render.<br>
Expand Down

0 comments on commit 03b7f51

Please sign in to comment.