[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-28 18:04:28 -08:00
1 parent 83698cb73c
commit 84c2239244
561 files changed
+8872 -9300

No files matched your search

@@ -1,16 +1,18 @@
package tconstruct.items.tools;
import cpw.mods.fml.relauncher.*;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.*;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import tconstruct.library.tools.Weapon;
import tconstruct.tools.TinkerTools;
import cpw.mods.fml.relauncher.*;
public class Longsword extends Weapon {
public Longsword() {
super(4);
this.setUnlocalizedName("InfiTool.Longsword");
@@ -37,21 +39,13 @@ public class Longsword extends Weapon {
@Override
public void onPlayerStoppedUsing(ItemStack stack, World world, EntityPlayer player, int useCount) {
/*
* if (player.onGround) { int time = this.getMaxItemUseDuration(stack) -
* useCount; if (time > 5) { player.addExhaustion(0.2F);
* player.setSprinting(true);
*
* float speed = 0.05F * time; if (speed > 0.925f) speed = 0.925f;
*
* float increase = (float) (0.02 * time + 0.2); if (increase > 0.56f)
* increase = 0.56f; player.motionY += increase + speed/3;
*
* player.motionX = (double) (-MathHelper.sin(player.rotationYaw /
* 180.0F * (float) Math.PI) * MathHelper.cos(player.rotationPitch /
* 180.0F * (float) Math.PI) * speed); player.motionZ = (double)
* (MathHelper.cos(player.rotationYaw / 180.0F * (float) Math.PI) *
* MathHelper.cos(player.rotationPitch / 180.0F * (float) Math.PI) *
* speed); } }
* if (player.onGround) { int time = this.getMaxItemUseDuration(stack) - useCount; if (time > 5) {
* player.addExhaustion(0.2F); player.setSprinting(true); float speed = 0.05F * time; if (speed > 0.925f) speed
* = 0.925f; float increase = (float) (0.02 * time + 0.2); if (increase > 0.56f) increase = 0.56f;
* player.motionY += increase + speed/3; player.motionX = (double) (-MathHelper.sin(player.rotationYaw / 180.0F
* * (float) Math.PI) * MathHelper.cos(player.rotationPitch / 180.0F * (float) Math.PI) * speed); player.motionZ
* = (double) (MathHelper.cos(player.rotationYaw / 180.0F * (float) Math.PI) *
* MathHelper.cos(player.rotationPitch / 180.0F * (float) Math.PI) * speed); } }
*/
int time = this.getMaxItemUseDuration(stack) - useCount;
if (time > 5) {