forked from progwml6/Natura
-
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.
- Loading branch information
Showing
11 changed files
with
98 additions
and
78 deletions.
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
4 changes: 2 additions & 2 deletions
4
src/main/java/com/progwml6/natura/tools/ToolsClientProxy.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
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
4 changes: 2 additions & 2 deletions
4
src/main/java/com/progwml6/natura/tools/item/tools/ItemNaturaAxe.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
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
4 changes: 2 additions & 2 deletions
4
src/main/java/com/progwml6/natura/tools/item/tools/ItemNaturaHoe.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
4 changes: 2 additions & 2 deletions
4
src/main/java/com/progwml6/natura/tools/item/tools/ItemNaturaPickaxe.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
15 changes: 9 additions & 6 deletions
15
src/main/java/com/progwml6/natura/tools/item/tools/ItemNaturaShears.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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
package com.progwml6.natura.tools.item.tools; | ||
|
||
import com.progwml6.natura.library.NaturaRegistry; | ||
import javax.annotation.Nonnull; | ||
|
||
import net.minecraft.item.ItemShears; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.item.crafting.Ingredient; | ||
|
||
import com.progwml6.natura.library.NaturaRegistry; | ||
|
||
public class ItemNaturaShears extends ItemShears | ||
{ | ||
public Ingredient repairMaterial; | ||
public final Ingredient repairMaterial; | ||
|
||
public ItemNaturaShears(int durability, Ingredient repairMaterial) | ||
{ | ||
this.maxStackSize = 1; | ||
this.maxStackSize = 1; | ||
this.repairMaterial = repairMaterial; | ||
this.setMaxDamage(durability); | ||
this.setCreativeTab(NaturaRegistry.tabGeneral); | ||
} | ||
|
||
@Override | ||
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) { | ||
public boolean getIsRepairable(@Nonnull ItemStack toRepair, @Nonnull ItemStack repair) | ||
{ | ||
return repairMaterial.test(repair) || super.getIsRepairable(toRepair, repair); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/java/com/progwml6/natura/tools/item/tools/ItemNaturaShovel.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
4 changes: 2 additions & 2 deletions
4
src/main/java/com/progwml6/natura/tools/item/tools/ItemNaturaSword.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