forked from Trcx528/Swapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added speedtester to help trouble shoot #8, also switched to extendin…
…g itemTool rather than just item...I hope that might help fix #8
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/main/java/com/trcx/swapper/Common/BlockSpeedTester.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.trcx.swapper.Common; | ||
|
||
import cpw.mods.fml.common.FMLLog; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.world.World; | ||
import org.apache.logging.log4j.Level; | ||
|
||
/** | ||
* Created by Trcx on 3/21/2015. | ||
*/ | ||
public class BlockSpeedTester extends Block { | ||
|
||
public BlockSpeedTester() { | ||
super(Material.rock); | ||
setHardness(0.5f); | ||
setHarvestLevel("pickaxe",0); | ||
} | ||
|
||
@Override | ||
public void harvestBlock(World world, EntityPlayer player, int p_149636_3_, int p_149636_4_, int p_149636_5_, int p_149636_6_) { | ||
FMLLog.log("Swapper",Level.INFO,player.getHeldItem().toString() + " " + player.getHeldItem().getItem().getDigSpeed(player.getHeldItem(),this,0)); | ||
super.harvestBlock(world, player, p_149636_3_, p_149636_4_, p_149636_5_, p_149636_6_); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters