-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added Datagen to the Fabric side for Tags and Enchantments; the intention is to generate data on the Fabric side and manually copy them to the NeoForge side - Refactored Artifact classes to no longer need the enums that created their IDs - Added the support necessary for basic cooldown functionality - Added proper registry checks for mixins that were using enums - Corrected Artifact Lootpools in config values - Began basic refactoring of configs to allow for tag usage for artifact grouping - Removed pluralisations of package names to bring mod into 1.21 package expectations - Removed `enchantments` package and contents as they are no longer necessary - Removed `enums` package and contents as they are no longer necessary - Removed `EnchantsRegistry` as it is no longer necessary - Removed `McdarEnchantmentHelper` as it was only helping with cooldown implementation, which has been moved to the `EnchantmentEffects` class - Current Issue: When attempting to generate the tag files via Datagen, it is unable to complete because of the following IllegalStateException: "This registry can't create intrusive holders"
- Loading branch information
1 parent
d812ff5
commit e889a9d
Showing
86 changed files
with
606 additions
and
1,409 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
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
45 changes: 0 additions & 45 deletions
45
common/src/main/java/dev/timefall/mcdar/api/McdarEnchantmentHelper.java
This file was deleted.
Oops, something went wrong.
6 changes: 1 addition & 5 deletions
6
common/src/main/java/dev/timefall/mcdar/artifacts/ArtifactAgilityItem.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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
package dev.timefall.mcdar.artifacts; | ||
|
||
import dev.timefall.mcdar.enums.AgilityArtifactID; | ||
import net.minecraft.item.Item; | ||
|
||
public class ArtifactAgilityItem extends Item { | ||
|
||
public final AgilityArtifactID id; | ||
|
||
public ArtifactAgilityItem(AgilityArtifactID id, int artifactDurability) { | ||
public ArtifactAgilityItem(int artifactDurability) { | ||
super(new Settings().maxCount(1).maxDamage(artifactDurability)); | ||
this.id = id; | ||
} | ||
} |
6 changes: 1 addition & 5 deletions
6
common/src/main/java/dev/timefall/mcdar/artifacts/ArtifactDamagingItem.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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
package dev.timefall.mcdar.artifacts; | ||
|
||
import dev.timefall.mcdar.enums.DamagingArtifactID; | ||
import net.minecraft.item.Item; | ||
|
||
public class ArtifactDamagingItem extends Item { | ||
|
||
public final DamagingArtifactID id; | ||
|
||
public ArtifactDamagingItem(DamagingArtifactID id, int artifactDurability) { | ||
public ArtifactDamagingItem(int artifactDurability) { | ||
super(new Settings().maxCount(1).maxDamage(artifactDurability)); | ||
this.id = id; | ||
} | ||
} |
6 changes: 1 addition & 5 deletions
6
common/src/main/java/dev/timefall/mcdar/artifacts/ArtifactDefensiveItem.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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
package dev.timefall.mcdar.artifacts; | ||
|
||
import dev.timefall.mcdar.enums.DefensiveArtifactID; | ||
import net.minecraft.item.Item; | ||
|
||
public class ArtifactDefensiveItem extends Item { | ||
|
||
public final DefensiveArtifactID id; | ||
|
||
public ArtifactDefensiveItem(DefensiveArtifactID id, int artifactDurability) { | ||
public ArtifactDefensiveItem(int artifactDurability) { | ||
super(new Settings().maxCount(1).maxDamage(artifactDurability)); | ||
this.id = id; | ||
} | ||
} |
6 changes: 1 addition & 5 deletions
6
common/src/main/java/dev/timefall/mcdar/artifacts/ArtifactQuiverItem.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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
package dev.timefall.mcdar.artifacts; | ||
|
||
import dev.timefall.mcdar.enums.QuiverArtifactID; | ||
import net.minecraft.item.Item; | ||
|
||
public class ArtifactQuiverItem extends Item { | ||
|
||
public final QuiverArtifactID id; | ||
|
||
public ArtifactQuiverItem(QuiverArtifactID id, int artifactDurability) { | ||
public ArtifactQuiverItem(int artifactDurability) { | ||
super(new Settings().maxCount(1).maxDamage(artifactDurability)); | ||
this.id = id; | ||
} | ||
} |
6 changes: 1 addition & 5 deletions
6
common/src/main/java/dev/timefall/mcdar/artifacts/ArtifactStatusInflictingItem.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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
package dev.timefall.mcdar.artifacts; | ||
|
||
import dev.timefall.mcdar.enums.StatusInflictingArtifactID; | ||
import net.minecraft.item.Item; | ||
|
||
public class ArtifactStatusInflictingItem extends Item { | ||
|
||
public final StatusInflictingArtifactID id; | ||
|
||
public ArtifactStatusInflictingItem(StatusInflictingArtifactID id, int artifactDurability) { | ||
public ArtifactStatusInflictingItem(int artifactDurability) { | ||
super(new Settings().maxCount(1).maxDamage(artifactDurability)); | ||
this.id = id; | ||
} | ||
} |
6 changes: 1 addition & 5 deletions
6
common/src/main/java/dev/timefall/mcdar/artifacts/ArtifactSummoningItem.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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
package dev.timefall.mcdar.artifacts; | ||
|
||
import dev.timefall.mcdar.enums.SummoningArtifactID; | ||
import net.minecraft.item.Item; | ||
|
||
public class ArtifactSummoningItem extends Item { | ||
|
||
public final SummoningArtifactID id; | ||
|
||
public ArtifactSummoningItem(SummoningArtifactID id, int artifactDurability) { | ||
public ArtifactSummoningItem(int artifactDurability) { | ||
super(new Settings().maxCount(1).maxDamage(artifactDurability)); | ||
this.id = id; | ||
} | ||
} |
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
Oops, something went wrong.