Update Fabric API and make use of its new features.
|
@ -26,6 +26,7 @@ package techreborn.datagen
|
|||
|
||||
import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint
|
||||
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator
|
||||
import techreborn.TechReborn
|
||||
import techreborn.datagen.models.ModelProvider
|
||||
import techreborn.datagen.recipes.crafting.CraftingRecipesProvider
|
||||
import techreborn.datagen.recipes.machine.assembling_machine.AssemblingMachineRecipesProvider
|
||||
|
@ -65,4 +66,9 @@ class TechRebornDataGen implements DataGeneratorEntrypoint {
|
|||
|
||||
fabricDataGenerator.addProvider(ModelProvider.&new)
|
||||
}
|
||||
|
||||
@Override
|
||||
String getEffectiveModId() {
|
||||
return TechReborn.MOD_ID
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,6 +69,8 @@ public enum TRArmorMaterials implements ArmorMaterial {
|
|||
private final float knockbackResistance;
|
||||
private final Lazy<Ingredient> repairMaterial;
|
||||
|
||||
private final String name;
|
||||
|
||||
TRArmorMaterials(int maxDamageFactor, int[] damageReductionAmountArray, int enchantability,
|
||||
SoundEvent soundEvent, float toughness, float knockbackResistance, Supplier<Ingredient> repairMaterialIn) {
|
||||
this.maxDamageFactor = maxDamageFactor;
|
||||
|
@ -78,6 +80,7 @@ public enum TRArmorMaterials implements ArmorMaterial {
|
|||
this.toughness = toughness;
|
||||
this.knockbackResistance = knockbackResistance;
|
||||
this.repairMaterial = new Lazy<>(repairMaterialIn);
|
||||
this.name = "techreborn:" + this.toString().toLowerCase(Locale.ROOT);
|
||||
}
|
||||
|
||||
TRArmorMaterials(int maxDamageFactor, int[] damageReductionAmountArray, int enchantability,
|
||||
|
@ -112,7 +115,7 @@ public enum TRArmorMaterials implements ArmorMaterial {
|
|||
|
||||
@Override
|
||||
public String getName() {
|
||||
return this.toString().toLowerCase(Locale.ROOT);
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 616 B After Width: | Height: | Size: 616 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 624 B After Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 622 B After Width: | Height: | Size: 622 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 672 B After Width: | Height: | Size: 672 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 614 B After Width: | Height: | Size: 614 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 614 B After Width: | Height: | Size: 614 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 575 B After Width: | Height: | Size: 575 B |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
|
@ -31,7 +31,7 @@
|
|||
},
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.8",
|
||||
"fabric-api": ">=0.60.0",
|
||||
"fabric-api": ">=0.62.0",
|
||||
"reborncore": "*",
|
||||
"team_reborn_energy": ">=2.2.0",
|
||||
"fabric-biome-api-v1": ">=3.0.0",
|
||||
|
|