Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+430 Bytes
resources/assets/tinker/textures/items/broadsword/boneana_split.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,45 @@ | ||
package tconstruct.weaponry.items; | ||
|
||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
import net.minecraft.client.renderer.texture.IIconRegister; | ||
import net.minecraft.creativetab.CreativeTabs; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.IIcon; | ||
import tconstruct.items.tools.Broadsword; | ||
import tconstruct.library.tools.AbilityHelper; | ||
import tconstruct.util.Reference; | ||
|
||
import java.util.List; | ||
|
||
public class Boneana extends Broadsword { | ||
private IIcon brokenIcon; | ||
|
||
@Override | ||
public void registerIcons(IIconRegister iconRegister) { | ||
itemIcon = iconRegister.registerIcon(Reference.resource("broadsword/boneana")); | ||
brokenIcon = iconRegister.registerIcon(Reference.resource("broadsword/boneana_split")); | ||
} | ||
|
||
@Override | ||
@SideOnly(Side.CLIENT) | ||
public IIcon getIcon(ItemStack stack, int renderPass) { | ||
if(!stack.hasTagCompound() || !stack.getTagCompound().hasKey("InfiTool")) | ||
return emptyIcon; | ||
|
||
if(stack.getTagCompound().getCompoundTag("InfiTool").getBoolean("Broken")) | ||
return brokenIcon; | ||
return itemIcon; | ||
} | ||
|
||
@Override | ||
public String getLocalizedToolName() { | ||
return "Bonæna"; | ||
} | ||
|
||
@Override | ||
public void getSubItems(Item id, CreativeTabs tab, List list) { | ||
// you are not welcome here >:C | ||
} | ||
} |
4a2defb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi!