-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
66694d4
commit a792401
Showing
66 changed files
with
829 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
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
13 changes: 13 additions & 0 deletions
13
...java/net/dakotapride/garnished/item/hatchet/tier/integrated/AeterniumHatchetToolItem.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,13 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedHatchetToolItem; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedMaterials; | ||
|
||
public class AeterniumHatchetToolItem extends IntegratedHatchetToolItem { | ||
public AeterniumHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.betterEnd(), IntegratedMaterials.AETERNIUM, IntegratedMaterials.AETERNIUM.getAttackDamageBonus(), IntegratedMaterials.AETERNIUM.getSpeed(), properties); | ||
} | ||
|
||
|
||
} |
11 changes: 11 additions & 0 deletions
11
...akotapride/garnished/item/hatchet/tier/integrated/CincinnasiteDiamondHatchetToolItem.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,11 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedHatchetToolItem; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedMaterials; | ||
|
||
public class CincinnasiteDiamondHatchetToolItem extends IntegratedHatchetToolItem { | ||
public CincinnasiteDiamondHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.betterNether(), IntegratedMaterials.CINCINNASITE_DIAMOND, IntegratedMaterials.CINCINNASITE_DIAMOND.getAttackDamageBonus(), IntegratedMaterials.CINCINNASITE_DIAMOND.getSpeed(), properties); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...a/net/dakotapride/garnished/item/hatchet/tier/integrated/CincinnasiteHatchetToolItem.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,11 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedHatchetToolItem; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedMaterials; | ||
|
||
public class CincinnasiteHatchetToolItem extends IntegratedHatchetToolItem { | ||
public CincinnasiteHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.betterNether(), IntegratedMaterials.CINCINNASITE, IntegratedMaterials.CINCINNASITE.getAttackDamageBonus(), IntegratedMaterials.CINCINNASITE.getSpeed(), properties); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...va/net/dakotapride/garnished/item/hatchet/tier/integrated/FlamingRubyHatchetToolItem.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,11 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedHatchetToolItem; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedMaterials; | ||
|
||
public class FlamingRubyHatchetToolItem extends IntegratedHatchetToolItem { | ||
public FlamingRubyHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.betterNether(), IntegratedMaterials.FLAMING_RUBY, IntegratedMaterials.FLAMING_RUBY.getAttackDamageBonus(), IntegratedMaterials.FLAMING_RUBY.getSpeed(), properties); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...ain/java/net/dakotapride/garnished/item/hatchet/tier/integrated/FluixHatchetToolItem.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,38 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated; | ||
|
||
import java.util.List; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedHatchetToolItem; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedMaterials; | ||
import net.dakotapride.garnished.registry.GarnishedEnchantments; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.TooltipFlag; | ||
import net.minecraft.world.item.enchantment.Enchantment; | ||
import net.minecraft.world.level.Level; | ||
|
||
public class FluixHatchetToolItem extends IntegratedHatchetToolItem { | ||
public FluixHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.ae2(), IntegratedMaterials.FLUIX, 6.0F, -3.1F, properties); | ||
} | ||
|
||
public int getIntrinsicEnchantLevel(ItemStack stack, Enchantment enchantment) { | ||
return enchantment == GarnishedEnchantments.STRIKING.get() ? 1 : 0; | ||
} | ||
|
||
@Override | ||
public void appendHoverText(ItemStack stack, @Nullable Level level, List<Component> components, TooltipFlag tooltipFlag) { | ||
components.add(Component.literal("Always has at least §7Striking 1")); | ||
super.appendHoverText(stack, level, components, tooltipFlag); | ||
|
||
// components.add(GuiText.IntrinsicEnchant.text(Enchantments.BLOCK_FORTUNE.getFullname(1))); | ||
} | ||
|
||
@Override | ||
public boolean isFoil(ItemStack stack) { | ||
return true; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ava/net/dakotapride/garnished/item/hatchet/tier/integrated/NetherRubyHatchetToolItem.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,11 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedHatchetToolItem; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedMaterials; | ||
|
||
public class NetherRubyHatchetToolItem extends IntegratedHatchetToolItem { | ||
public NetherRubyHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.betterNether(), IntegratedMaterials.NETHER_RUBY, IntegratedMaterials.NETHER_RUBY.getAttackDamageBonus(), IntegratedMaterials.NETHER_RUBY.getSpeed(), properties); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...in/java/net/dakotapride/garnished/item/hatchet/tier/integrated/QuartzHatchetToolItem.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,18 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedHatchetToolItem; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedMaterials; | ||
|
||
public class QuartzHatchetToolItem extends IntegratedHatchetToolItem { | ||
public QuartzHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.ae2(), IntegratedMaterials.NETHER_QUARTZ, 6.0F, -3.1F, properties); | ||
} | ||
|
||
public static class CertusQuartzHatchetToolItem extends IntegratedHatchetToolItem { | ||
public CertusQuartzHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.ae2(), IntegratedMaterials.CERTUS_QUARTZ, 6.0F, -3.1F, properties); | ||
} | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...java/net/dakotapride/garnished/item/hatchet/tier/integrated/TerminiteHatchetToolItem.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,13 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedHatchetToolItem; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedMaterials; | ||
|
||
public class TerminiteHatchetToolItem extends IntegratedHatchetToolItem { | ||
public TerminiteHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.betterEnd(), IntegratedMaterials.TERMINITE, IntegratedMaterials.TERMINITE.getAttackDamageBonus(), IntegratedMaterials.TERMINITE.getSpeed(), properties); | ||
} | ||
|
||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...ava/net/dakotapride/garnished/item/hatchet/tier/integrated/ThallasiumHatchetToolItem.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,13 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedHatchetToolItem; | ||
import net.dakotapride.garnished.item.hatchet.IntegratedMaterials; | ||
|
||
public class ThallasiumHatchetToolItem extends IntegratedHatchetToolItem { | ||
public ThallasiumHatchetToolItem(Properties properties) { | ||
super(GarnishedUtils.betterEnd(), IntegratedMaterials.THALLASIUM, IntegratedMaterials.THALLASIUM.getAttackDamageBonus(), IntegratedMaterials.THALLASIUM.getSpeed(), properties); | ||
} | ||
|
||
|
||
} |
31 changes: 31 additions & 0 deletions
31
...a/net/dakotapride/garnished/item/hatchet/tier/integrated/head/IntegratedToolHeadItem.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,31 @@ | ||
package net.dakotapride.garnished.item.hatchet.tier.integrated.head; | ||
|
||
import net.dakotapride.garnished.GarnishedUtils; | ||
import net.fabricmc.loader.api.FabricLoader; | ||
import net.minecraft.ChatFormatting; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.Tier; | ||
import net.minecraft.world.item.TooltipFlag; | ||
import net.minecraft.world.level.Level; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.List; | ||
|
||
public class IntegratedToolHeadItem extends Item { | ||
String integratedModID; | ||
|
||
public IntegratedToolHeadItem(Properties properties) { | ||
super(properties); | ||
this.integratedModID = GarnishedUtils.betterEnd(); | ||
} | ||
|
||
@Override | ||
public void appendHoverText(ItemStack stack, @Nullable Level level, List<Component> components, TooltipFlag tooltipFlag) { | ||
if (!(FabricLoader.getInstance().isModLoaded(integratedModID))) { | ||
components.add(Component.translatable("text.garnished.integration." + integratedModID + ".missing").withStyle(ChatFormatting.GRAY)); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.