-
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.
add ender knight armor and remove entity
- Loading branch information
Showing
31 changed files
with
123 additions
and
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: Setup JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'microsoft' | ||
|
||
- name: Setup Gradle 8.10 | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
gradle-version: "8.10" | ||
|
||
- name: Run build | ||
run: gradle build | ||
|
||
- name: Copy Jars | ||
run: gradle copyJars | ||
|
||
- name: Upload files | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build and source jars | ||
path: build/libs/*.jar | ||
retention-days: 7 |
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
101 changes: 0 additions & 101 deletions
101
common/src/main/java/com/iafenvoy/sow/entity/EnderKnightEntity.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
common/src/main/java/com/iafenvoy/sow/item/EnderKnightArmorItem.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,22 @@ | ||
package com.iafenvoy.sow.item; | ||
|
||
import com.iafenvoy.neptune.render.armor.IArmorTextureProvider; | ||
import com.iafenvoy.sow.SongsOfWar; | ||
import com.iafenvoy.sow.registry.SowItemGroups; | ||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.EquipmentSlot; | ||
import net.minecraft.item.ArmorItem; | ||
import net.minecraft.item.ArmorMaterials; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class EnderKnightArmorItem extends ArmorItem implements IArmorTextureProvider { | ||
public EnderKnightArmorItem(Type type) { | ||
super(ArmorMaterials.NETHERITE, type, new Settings().fireproof().arch$tab(SowItemGroups.ITEMS)); | ||
} | ||
|
||
@Override | ||
public Identifier getArmorTexture(ItemStack itemStack, Entity entity, EquipmentSlot equipmentSlot, String s) { | ||
return new Identifier(SongsOfWar.MOD_ID, "textures/models/armor/ender_knight_layer_" + (equipmentSlot == EquipmentSlot.LEGS ? 2 : 1) + ".png"); | ||
} | ||
} |
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
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
11 changes: 11 additions & 0 deletions
11
common/src/main/java/com/iafenvoy/sow/render/util/ArdoniMarkerReloader.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 com.iafenvoy.sow.render.util; | ||
|
||
import net.minecraft.resource.ResourceManager; | ||
import net.minecraft.resource.SynchronousResourceReloader; | ||
|
||
public class ArdoniMarkerReloader implements SynchronousResourceReloader { | ||
@Override | ||
public void reload(ResourceManager manager) { | ||
ArdoniMarkerGenerator.resetAll(); | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
common/src/main/resources/assets/sow/models/item/ender_knight_boots.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": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "sow:item/armor/ender_knight_boots" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
common/src/main/resources/assets/sow/models/item/ender_knight_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": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "sow:item/armor/ender_knight_chestplate" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
common/src/main/resources/assets/sow/models/item/ender_knight_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": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "sow:item/armor/ender_knight_helmet" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
common/src/main/resources/assets/sow/models/item/ender_knight_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": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "sow:item/armor/ender_knight_leggings" | ||
} | ||
} |
3 changes: 0 additions & 3 deletions
3
common/src/main/resources/assets/sow/models/item/ender_knight_spawn_egg.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-7.4 KB
...n/src/main/resources/assets/sow/textures/entity/ender_knight/ender_knight_1.png
Binary file not shown.
Binary file removed
BIN
-5.99 KB
...n/src/main/resources/assets/sow/textures/entity/ender_knight/ender_knight_2.png
Binary file not shown.
Binary file removed
BIN
-17.7 KB
...n/src/main/resources/assets/sow/textures/entity/ender_knight/ender_knight_3.png
Binary file not shown.
Binary file removed
BIN
-18.9 KB
...n/src/main/resources/assets/sow/textures/entity/ender_knight/ender_knight_4.png
Binary file not shown.
Binary file removed
BIN
-4.39 KB
...n/src/main/resources/assets/sow/textures/entity/ender_knight/ender_knight_5.png
Binary file not shown.
Binary file added
BIN
+430 Bytes
common/src/main/resources/assets/sow/textures/item/armor/ender_knight_boots.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
+665 Bytes
...n/src/main/resources/assets/sow/textures/item/armor/ender_knight_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
+344 Bytes
common/src/main/resources/assets/sow/textures/item/armor/ender_knight_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
+390 Bytes
common/src/main/resources/assets/sow/textures/item/armor/ender_knight_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
+2.9 KB
...on/src/main/resources/assets/sow/textures/models/armor/ender_knight_layer_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
+740 Bytes
...on/src/main/resources/assets/sow/textures/models/armor/ender_knight_layer_2.png
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
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