This repository has been archived on 2026-10-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
slashblade-allweapon/src/main/java/com/moe/allweapon/Blade/BaiQiYue.java
T
TDLM Bot 5330284d9b @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: Claude Opus 4.8 (1M context) <[email protected]>
@
2026-07-05 03:35:59 +08:00

61 lines
2.5 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* mods.flammpfeil.slashblade.stats.AchievementList
* net.minecraft.enchantment.Enchantment
* net.minecraft.item.Item
* net.minecraft.item.ItemShears
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.stats.Achievement
*/
package com.moe.allweapon.Blade;
import com.moe.allweapon.SA.SAweizhan;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import mods.flammpfeil.slashblade.stats.AchievementList;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.item.Item;
import net.minecraft.item.ItemShears;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.stats.Achievement;
public class BaiQiYue
extends ItemShears {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.baishiyue";
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(120));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.specialAttacks.put(1709, new SAweizhan());
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(1709));
ItemSlashBlade.TextureName.set(tag, "named/baiqiyue/texture");
ItemSlashBlade.ModelName.set(tag, "named/baiqiyue/model");
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
customblade.addEnchantment(Enchantment.fireAspect, 6);
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add("flammpfeil.slashblade:" + name);
AchievementList.registerCraftingAchievement(name, customblade, (Achievement)null);
}
}