-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 Fix datagen, equipment models, and more
- Loading branch information
Showing
90 changed files
with
506 additions
and
448 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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
14 changes: 14 additions & 0 deletions
14
.../src/generated/resources/assets/advancednetherite/models/equipment/netherite_diamond.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_diamond" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_diamond" | ||
} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../src/generated/resources/assets/advancednetherite/models/equipment/netherite_emerald.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_emerald" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_emerald" | ||
} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
Fabric/src/generated/resources/assets/advancednetherite/models/equipment/netherite_gold.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_gold" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_gold" | ||
} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
Fabric/src/generated/resources/assets/advancednetherite/models/equipment/netherite_iron.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_iron" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_iron" | ||
} | ||
] | ||
} | ||
} |
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
40 changes: 40 additions & 0 deletions
40
...c/main/java/com/autovw/advancednetherite/datagen/providers/ModEquipmentModelProvider.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,40 @@ | ||
package com.autovw.advancednetherite.datagen.providers; | ||
|
||
import com.autovw.advancednetherite.core.util.ModEquipmentModels; | ||
import net.minecraft.data.CachedOutput; | ||
import net.minecraft.data.DataProvider; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.models.EquipmentModelProvider; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.equipment.EquipmentModel; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
/** | ||
* @author Autovw | ||
*/ | ||
public class ModEquipmentModelProvider extends EquipmentModelProvider | ||
{ | ||
protected final PackOutput.PathProvider pathProvider; | ||
|
||
public ModEquipmentModelProvider(PackOutput packOutput) | ||
{ | ||
super(packOutput); | ||
this.pathProvider = packOutput.createPathProvider(PackOutput.Target.RESOURCE_PACK, "models/equipment"); | ||
} | ||
|
||
@Override | ||
public CompletableFuture<?> run(CachedOutput output) | ||
{ | ||
Map<ResourceLocation, EquipmentModel> map = new HashMap<>(); | ||
ModEquipmentModels.bootstrap((id, model) -> { | ||
if (map.putIfAbsent(id, model) != null) | ||
{ | ||
throw new IllegalStateException("Duplicate equipment model for id: " + id.toString()); | ||
} | ||
}); | ||
return DataProvider.saveAll(output, EquipmentModel.CODEC, this.pathProvider, map); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../src/generated/resources/assets/advancednetherite/models/equipment/netherite_diamond.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_diamond" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_diamond" | ||
} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../src/generated/resources/assets/advancednetherite/models/equipment/netherite_emerald.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_emerald" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_emerald" | ||
} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
Forge/src/generated/resources/assets/advancednetherite/models/equipment/netherite_gold.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_gold" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_gold" | ||
} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
Forge/src/generated/resources/assets/advancednetherite/models/equipment/netherite_iron.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_iron" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_iron" | ||
} | ||
] | ||
} | ||
} |
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
40 changes: 40 additions & 0 deletions
40
...c/main/java/com/autovw/advancednetherite/datagen/providers/ModEquipmentModelProvider.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,40 @@ | ||
package com.autovw.advancednetherite.datagen.providers; | ||
|
||
import com.autovw.advancednetherite.core.util.ModEquipmentModels; | ||
import net.minecraft.data.CachedOutput; | ||
import net.minecraft.data.DataProvider; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.models.EquipmentModelProvider; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.equipment.EquipmentModel; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
/** | ||
* @author Autovw | ||
*/ | ||
public class ModEquipmentModelProvider extends EquipmentModelProvider | ||
{ | ||
protected final PackOutput.PathProvider pathProvider; | ||
|
||
public ModEquipmentModelProvider(PackOutput packOutput) | ||
{ | ||
super(packOutput); | ||
this.pathProvider = packOutput.createPathProvider(PackOutput.Target.RESOURCE_PACK, "models/equipment"); | ||
} | ||
|
||
@Override | ||
public CompletableFuture<?> run(CachedOutput output) | ||
{ | ||
Map<ResourceLocation, EquipmentModel> map = new HashMap<>(); | ||
ModEquipmentModels.bootstrap((id, model) -> { | ||
if (map.putIfAbsent(id, model) != null) | ||
{ | ||
throw new IllegalStateException("Duplicate equipment model for id: " + id.toString()); | ||
} | ||
}); | ||
return DataProvider.saveAll(output, EquipmentModel.CODEC, this.pathProvider, map); | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
.../src/generated/resources/assets/advancednetherite/models/equipment/netherite_diamond.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_diamond" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_diamond" | ||
} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../src/generated/resources/assets/advancednetherite/models/equipment/netherite_emerald.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_emerald" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_emerald" | ||
} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...rge/src/generated/resources/assets/advancednetherite/models/equipment/netherite_gold.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_gold" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_gold" | ||
} | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...rge/src/generated/resources/assets/advancednetherite/models/equipment/netherite_iron.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,14 @@ | ||
{ | ||
"layers": { | ||
"humanoid": [ | ||
{ | ||
"texture": "advancednetherite:netherite_iron" | ||
} | ||
], | ||
"humanoid_leggings": [ | ||
{ | ||
"texture": "advancednetherite:netherite_iron" | ||
} | ||
] | ||
} | ||
} |
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.