forked from MobiusFlip/CrimsonRevelations
-
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
1 parent
588a534
commit cfe6277
Showing
22 changed files
with
640 additions
and
3 deletions.
There are no files selected for viewing
491 changes: 491 additions & 0 deletions
491
src/main/java/mod/icarus/crimsonrevelations/client/model/gear/ModelCultistArcherArmor.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
52 changes: 52 additions & 0 deletions
52
src/main/java/mod/icarus/crimsonrevelations/item/armor/ItemCultistArcherArmor.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,52 @@ | ||
package mod.icarus.crimsonrevelations.item.armor; | ||
|
||
import mod.icarus.crimsonrevelations.CrimsonRevelations; | ||
import mod.icarus.crimsonrevelations.client.model.gear.ModelCultistArcherArmor; | ||
import mod.icarus.crimsonrevelations.init.RegistryHandler; | ||
import mod.icarus.crimsonrevelations.init.RenderingHandler; | ||
|
||
import net.minecraft.client.model.ModelBiped; | ||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.inventory.EntityEquipmentSlot; | ||
import net.minecraft.item.EnumRarity; | ||
import net.minecraft.item.ItemArmor; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.ResourceLocation; | ||
import net.minecraftforge.fml.relauncher.Side; | ||
import net.minecraftforge.fml.relauncher.SideOnly; | ||
|
||
public class ItemCultistArcherArmor extends ItemArmor { | ||
ModelBiped model1 = null; | ||
ModelBiped model2 = null; | ||
|
||
protected static final String TEXTURE_PATH = new ResourceLocation(CrimsonRevelations.MODID, "textures/models/armor/cultist_archer_armor.png").toString(); | ||
|
||
public ItemCultistArcherArmor(EntityEquipmentSlot equipmentSlot) { | ||
super(RegistryHandler.ARMOR_CULTIST_ARCHER, 4, equipmentSlot); | ||
} | ||
|
||
@Override | ||
@SideOnly(Side.CLIENT) | ||
public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, EntityEquipmentSlot armorSlot, ModelBiped _default) { | ||
if (this.model1 == null) { | ||
this.model1 = new ModelCultistArcherArmor(0.5f); | ||
} | ||
if (this.model2 == null) { | ||
this.model2 = new ModelCultistArcherArmor(1.0F); | ||
} | ||
EntityEquipmentSlot type = ((ItemArmor) itemStack.getItem()).armorType; | ||
ModelBiped model = (type == EntityEquipmentSlot.LEGS) ? this.model1 : this.model2; | ||
return RenderingHandler.getCustomArmorModel(entityLiving, itemStack, armorSlot, model); | ||
} | ||
|
||
@Override | ||
public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) { | ||
return TEXTURE_PATH; | ||
} | ||
|
||
@Override | ||
public EnumRarity getRarity(ItemStack stack) { | ||
return EnumRarity.UNCOMMON; | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/crimsonrevelations/models/item/crimson_archer_chestplate.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": "crimsonrevelations:items/crimson_archer_chestplate" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/crimsonrevelations/models/item/crimson_archer_helmet.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": "crimsonrevelations:items/crimson_archer_helmet" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/crimsonrevelations/models/item/crimson_archer_leggings.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": "crimsonrevelations:items/crimson_archer_leggings" | ||
} | ||
} |
Binary file added
BIN
+706 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/bone_bow_pulling_0.png
Loading
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
+702 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/bone_bow_pulling_1.png
Loading
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
+700 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/bone_bow_pulling_2.png
Loading
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
+638 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/bone_bow_standby.png
Loading
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
+623 Bytes
...esources/assets/crimsonrevelations/textures/items/crimson_archer_chestplate.png
Loading
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
+3.02 KB
...in/resources/assets/crimsonrevelations/textures/items/crimson_archer_helmet.png
Loading
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
+491 Bytes
.../resources/assets/crimsonrevelations/textures/items/crimson_archer_leggings.png
Loading
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
+268 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/primal_arrow_air.png
Loading
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
+252 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/primal_arrow_earth.png
Loading
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
+251 Bytes
...ain/resources/assets/crimsonrevelations/textures/items/primal_arrow_entropy.png
Loading
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
+252 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/primal_arrow_fire.png
Loading
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
+243 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/primal_arrow_order.png
Loading
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
+249 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/primal_arrow_water.png
Loading
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
+18.1 KB
...ources/assets/crimsonrevelations/textures/models/armor/cultist_archer_armor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.