-
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
16 changed files
with
223 additions
and
64 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
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
35 changes: 35 additions & 0 deletions
35
src/main/java/io/github/cottonmc/dynagear/item/DynaArmorItem.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,35 @@ | ||
package io.github.cottonmc.dynagear.item; | ||
|
||
import io.github.cottonmc.dynagear.ConfiguredMaterial; | ||
import net.minecraft.entity.EquipmentSlot; | ||
import net.minecraft.item.ArmorItem; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.text.TranslatableText; | ||
|
||
public class DynaArmorItem extends ArmorItem { | ||
private ConfiguredMaterial material; | ||
private String type; | ||
public DynaArmorItem(ConfiguredMaterial material, String type, EquipmentSlot slot, Settings settings) { | ||
super(material, slot, settings); | ||
this.material = material; | ||
this.type = type; | ||
} | ||
|
||
@Override | ||
public String getTranslationKey() { | ||
return "item.dynagear." + type; | ||
} | ||
|
||
@Override | ||
public Text getName() { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
|
||
@Override | ||
public Text getName(ItemStack stack) { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/io/github/cottonmc/dynagear/item/DynaAxeItem.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,32 @@ | ||
package io.github.cottonmc.dynagear.item; | ||
|
||
import io.github.cottonmc.dynagear.ConfiguredMaterial; | ||
import net.minecraft.item.AxeItem; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.text.TranslatableText; | ||
|
||
public class DynaAxeItem extends AxeItem { | ||
private ConfiguredMaterial material; | ||
public DynaAxeItem(ConfiguredMaterial material, float baseAttackDamage, float attackSpeed, Settings settings) { | ||
super(material, baseAttackDamage, attackSpeed, settings); | ||
this.material = material; | ||
} | ||
|
||
@Override | ||
public String getTranslationKey() { | ||
return "item.dynagear.axe"; | ||
} | ||
|
||
@Override | ||
public Text getName() { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
|
||
@Override | ||
public Text getName(ItemStack stack) { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/io/github/cottonmc/dynagear/item/DynaHoeItem.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,32 @@ | ||
package io.github.cottonmc.dynagear.item; | ||
|
||
import io.github.cottonmc.dynagear.ConfiguredMaterial; | ||
import net.minecraft.item.HoeItem; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.text.TranslatableText; | ||
|
||
public class DynaHoeItem extends HoeItem { | ||
private ConfiguredMaterial material; | ||
public DynaHoeItem(ConfiguredMaterial material, float attackSpeed, Settings settinggs) { | ||
super(material, attackSpeed, settinggs); | ||
this.material = material; | ||
} | ||
|
||
@Override | ||
public String getTranslationKey() { | ||
return "item.dynagear.hoe"; | ||
} | ||
|
||
@Override | ||
public Text getName() { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
|
||
@Override | ||
public Text getName(ItemStack stack) { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/io/github/cottonmc/dynagear/item/DynaPickaxeItem.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,32 @@ | ||
package io.github.cottonmc.dynagear.item; | ||
|
||
import io.github.cottonmc.dynagear.ConfiguredMaterial; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.item.PickaxeItem; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.text.TranslatableText; | ||
|
||
public class DynaPickaxeItem extends PickaxeItem { | ||
private ConfiguredMaterial material; | ||
public DynaPickaxeItem(ConfiguredMaterial material, int baseAttackDamage, float attackSpeed, Settings settings) { | ||
super(material, baseAttackDamage, attackSpeed, settings); | ||
this.material = material; | ||
} | ||
|
||
@Override | ||
public String getTranslationKey() { | ||
return "item.dynagear.pickaxe"; | ||
} | ||
|
||
@Override | ||
public Text getName() { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
|
||
@Override | ||
public Text getName(ItemStack stack) { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/io/github/cottonmc/dynagear/item/DynaShovelItem.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,32 @@ | ||
package io.github.cottonmc.dynagear.item; | ||
|
||
import io.github.cottonmc.dynagear.ConfiguredMaterial; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.item.ShovelItem; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.text.TranslatableText; | ||
|
||
public class DynaShovelItem extends ShovelItem { | ||
private ConfiguredMaterial material; | ||
public DynaShovelItem(ConfiguredMaterial material, float baseAttackDamage, float attackSpeed, Settings settings) { | ||
super(material, baseAttackDamage, attackSpeed, settings); | ||
this.material = material; | ||
} | ||
|
||
@Override | ||
public String getTranslationKey() { | ||
return "item.dynagear.shovel"; | ||
} | ||
|
||
@Override | ||
public Text getName() { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
|
||
@Override | ||
public Text getName(ItemStack stack) { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/io/github/cottonmc/dynagear/item/DynaSwordItem.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,32 @@ | ||
package io.github.cottonmc.dynagear.item; | ||
|
||
import io.github.cottonmc.dynagear.ConfiguredMaterial; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.item.SwordItem; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.text.TranslatableText; | ||
|
||
public class DynaSwordItem extends SwordItem { | ||
private ConfiguredMaterial material; | ||
public DynaSwordItem(ConfiguredMaterial material, int baseAttackDamage, float attackSpeed, Settings settings) { | ||
super(material, baseAttackDamage, attackSpeed, settings); | ||
this.material = material; | ||
} | ||
|
||
@Override | ||
public String getTranslationKey() { | ||
return "item.dynagear.sword"; | ||
} | ||
|
||
@Override | ||
public Text getName() { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
|
||
@Override | ||
public Text getName(ItemStack stack) { | ||
String mat = material.getMaterialName().substring(0, 1).toUpperCase() + material.getMaterialName().substring(1); | ||
return new TranslatableText(getTranslationKey(), mat); | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
src/main/java/io/github/cottonmc/dynagear/util/DynaAxeItem.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/main/java/io/github/cottonmc/dynagear/util/DynaPickaxeItem.java
This file was deleted.
Oops, something went wrong.
Loading
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"itemGroup.dynagear.dynagear": "DynaGear", | ||
"translation.dynagear.sword": "%s Sword", | ||
"translation.dynagear.shovel": "%s Shovel", | ||
"translation.dynagear.pickaxe": "%s Pickaxe", | ||
"translation.dynagear.axe": "%s Axe", | ||
"translation.dynagear.hoe": "%s Hoe", | ||
"translation.dynagear.helmet": "%s Helmet", | ||
"translation.dynagear.chestplate": "%s Chestplate", | ||
"translation.dynaear.leggings": "%s Leggings", | ||
"translation.dynagear.boots": "%s Boots" | ||
"item.dynagear.sword": "%s Sword", | ||
"item.dynagear.shovel": "%s Shovel", | ||
"item.dynagear.pickaxe": "%s Pickaxe", | ||
"item.dynagear.axe": "%s Axe", | ||
"item.dynagear.hoe": "%s Hoe", | ||
"item.dynagear.helmet": "%s Helmet", | ||
"item.dynagear.chestplate": "%s Chestplate", | ||
"item.dynagear.leggings": "%s Leggings", | ||
"item.dynagear.boots": "%s Boots" | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/dynagear/models/item/dynagear_logo.json
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,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "dynagear:item/icon.png" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.