diff --git a/gradle.properties b/gradle.properties index 1792643..087b981 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,11 +5,11 @@ org.gradle.jvmargs=-Xmx1G minecraft_version=1.20.4 supported_version=>=1.20.2 yarn_mappings=1.20.4+build.3 -loader_version=0.15.6 +loader_version=0.15.7 # Mod Properties -mod_version=5.2.0 +mod_version=6.0.0-beta.1 maven_group=dev.louis archives_base_name=Nebula # Dependencies # check this on https://modmuss50.me/fabric.html -fabric_version=0.95.0+1.20.4 +fabric_version=0.96.4+1.20.4 diff --git a/src/main/java/dev/louis/nebula/api/NebulaPlayer.java b/src/main/java/dev/louis/nebula/api/NebulaPlayer.java index 4896f0c..9b6e704 100644 --- a/src/main/java/dev/louis/nebula/api/NebulaPlayer.java +++ b/src/main/java/dev/louis/nebula/api/NebulaPlayer.java @@ -26,7 +26,6 @@ default SpellManager setSpellManager(SpellManager spellManager) { throw new UnsupportedOperationException("Injected Interface method was not overridden!"); } - static ManaManager getManaManager(ServerPlayerEntity serverPlayer) { return serverPlayer.getManaManager(); } diff --git a/src/main/java/dev/louis/nebula/api/spell/Spell.java b/src/main/java/dev/louis/nebula/api/spell/Spell.java index b9e515e..b6e65db 100644 --- a/src/main/java/dev/louis/nebula/api/spell/Spell.java +++ b/src/main/java/dev/louis/nebula/api/spell/Spell.java @@ -2,14 +2,13 @@ import dev.louis.nebula.api.manager.spell.SpellManager; import net.minecraft.entity.player.PlayerEntity; -import net.minecraft.util.Identifier; /** * This class represents an attempt to cast a spell. It holds a reference to the caster of the Spell. * */ public abstract class Spell { - private static final int DEFAULT_SPELL_AGE = 3 * 20; + private static final int DEFAULT_SPELL_AGE = 0; protected final SpellType spellType; protected final PlayerEntity caster; @@ -41,10 +40,6 @@ public void applyCost() { public void tick() { } - public Identifier getId() { - return this.getType().getId(); - } - public PlayerEntity getCaster() { return this.caster; }