Commit ff6e122c authored by TDLM Bot's avatar TDLM Bot
Browse files

@Fix SlashBlade API deobfuscation and repoint deps to real SlashBlade/Botania

Compile-error fixes (deobfuscated func_/field_ references -> real SlashBlade API method names):
- ItemSlashBlade / EntityDrive / MotionVector / StunTracker / Refine / Trail / Combo
- DataWatcher parameters: ItemSlashBlade.stack -> SlashBlade.getSpecialAttackFromState, etc.
- Replaced call sites pointed at SlashBlade stub with real SlashBlade mc1.7.10-r87 API

Dependencies updated:
- SlashBlade 1.0.0-stub -> mods.flammpfeil.slashblade:SlashBlade:mc1.7.10-r87 (real, MavenLocal)
- botania-stub -> com.github.GTNewHorizons:Botania:1.13.16-GTNH:dev (real, JitPack/GTNH Maven)

compileJava + publishToMavenLocal both green.

Co-Authored-By: default avatarClaude Opus 4.8 (1M context) <[email protected]>
@
parent f939c79a
Loading
Loading
Loading
Loading
+1 −1
Changes for dependencies.gradle: 1 added line, 1 removed line.
Original line number Diff line number Diff line
dependencies {
    compileOnlyApi('mods.flammpfeil.slashblade:SlashBlade:1.0.0-stub')
    compileOnlyApi('mods.flammpfeil.slashblade:SlashBlade:mc1.7.10-r87')
}

repositories {
+1 −1
Changes for src/main/java/com/tanzanite/birdblade/SA/SAslashPierce.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ extends SpecialAttackBase {
            player.addPotionEffect(new PotionEffect(5, 4, 3, true));
            player.addPotionEffect(new PotionEffect(10, 6, 3, true));
            player.addPotionEffect(new PotionEffect(1, 10, 2, true));
            EntityDirectAttackDummy entityDA = new EntityDirectAttackDummy(world, (EntityLivingBase)player, attackDist);
            EntityDirectAttackDummy entityDA = new EntityDirectAttackDummy(world, (EntityLivingBase)player, false);
            entityDA.setLifeTime(7);
            if (entityDA != null) {
                world.spawnEntityInWorld((Entity)entityDA);
+3 −3
Changes for src/main/java/com/tanzanite/birdblade/blade/ItemSlashBlade_Bifang.java: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -44,12 +44,12 @@ public class ItemSlashBlade_Bifang {
    public void init(LoadEvent.InitEvent event) {
        ItemSlashBlade.specialAttacks.put(4000, new SAslashPierce());
        String name = "flammpfeil.slashblade.named.bifang";
        ItemStack customblade = new ItemStack(SlashBlade.bladeNamed.getItem(), 1, 0);
        ItemStack customblade = new ItemStack(SlashBlade.bladeNamed, 1, 0);
        NBTTagCompound tag = new NBTTagCompound();
        customblade.setTagCompound(tag);
        ItemSlashBladeNamed.CurrentItemName.set(tag, name);
        ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(163));
        ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf(3));
        ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(3.0f));
        ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
        ItemSlashBlade.setBaseAttackModifier(tag, 8.0f);
        ItemSlashBlade.TextureName.set(tag, "named/bifang/texture");
@@ -65,7 +65,7 @@ public class ItemSlashBlade_Bifang {
        customblade.addEnchantment(Enchantment.efficiency, 3);
        customblade.addEnchantment(Enchantment.fortune, 10);
        customblade.addEnchantment(Enchantment.silkTouch, 5);
        ItemStack custombladeRequired = new ItemStack(SlashBlade.bladeNamed.getItem(), 1, 0);
        ItemStack custombladeRequired = new ItemStack(SlashBlade.bladeNamed, 1, 0);
        NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeRequired);
        ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(2000));
        ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(15000));