初始化反编译源码

This commit is contained in:
layue13 committed 2026-06-30 04:05:44 +08:00
commit ffa5fceb41
18 files changed
+7216

No files matched your search

+1
View File
@@ -0,0 +1 @@
5fu/mods/【拔刀附属 ]鹰刃birdblade.jar
+13
View File
@@ -0,0 +1,13 @@
# birdblade-decompiled
Fallback decompile of `5fu/mods/【拔刀附属 ]鹰刃birdblade.jar`.
- Detected modid(s): `unknown`
- Original jar: `original/【拔刀附属 ]鹰刃birdblade.jar`
- Decompiled Java: `src/main/java`
- Extracted resources: `src/main/resources`
Build entries:
- `./build.sh` reliably recreates `build/libs/【拔刀附属 ]鹰刃birdblade.jar` from the preserved original jar.
- `./compile-decompiled.sh` attempts to compile the CFR output with Java 8 using jars from `../5fu/mods` and `../_downloaded-deps` as classpath. CFR output for old obfuscated/private mods may require manual cleanup before this succeeds.
Executable
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [[ ! -x ./compile-decompiled.sh ]]; then
echo "Missing full-source build entry: ./compile-decompiled.sh" >&2
exit 2
fi
exec ./compile-decompiled.sh "$@"
+43
View File
@@ -0,0 +1,43 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
mkdir -p build/classes build/logs build/libs
ROOT="$(pwd)"
TDLM_ROOT="$(cd "$ROOT/../.." && pwd)"
CP="${CP:-}"
if [ -z "$CP" ]; then
CP_ENTRIES=()
for jar in \
"$TDLM_ROOT/modsource/IndustrialCraft2/build/rfg/srg_patched_minecraft-classes.jar" \
"$TDLM_ROOT/Uranium/eclipse/cauldron/build/libs/cauldron.jar" \
"$TDLM_ROOT/Uranium/build/tmp/deobfuscateJar/deobfed.jar" \
"$TDLM_ROOT/modsource/CodeChickenCore/build/rfg/srg_merged_minecraft.jar"; do
[ -f "$jar" ] && CP_ENTRIES+=("$jar")
done
for dir in "$TDLM_ROOT/Uranium/build/bundle/libraries" "$TDLM_ROOT/Uranium-server-run/mods" "$TDLM_ROOT/client/mods" "$TDLM_ROOT/_downloaded-deps" "$TDLM_ROOT/modsource/ImmersiveEngineering/externalLibs" "$TDLM_ROOT/modsource/CodeChickenCore/run/client/mods" "$TDLM_ROOT/modsource/CodeChickenCore/run/mods" "$TDLM_ROOT/modsource/Mekanism-Community-Edition/libs" "$TDLM_ROOT/modsource/ExtraBotany/libs"; do
if [ -d "$dir" ]; then
while IFS= read -r jar; do
case "$jar" in
*-deobf.jar) continue ;;
esac
CP_ENTRIES+=("$jar")
done < <(find "$dir" -name '*.jar' -type f | sort)
fi
done
if [ ${#CP_ENTRIES[@]} -eq 0 ]; then
echo "no dependency jars found for decompiled build" >&2
exit 1
fi
CP="$(IFS=:; echo "${CP_ENTRIES[*]}")"
fi
find src/main/java -name '*.java' > build/sources.list
if [ ! -s build/sources.list ]; then
echo "no decompiled java sources found" >&2
exit 1
fi
javac -source 8 -target 8 -encoding UTF-8 -cp "$CP" -d build/classes @build/sources.list 2>&1 | tee build/logs/javac.log
if [ -d src/main/resources ]; then
( cd src/main/resources && tar cf - . ) | ( cd build/classes && tar xf - )
fi
jar cf "build/libs/【拔刀附属 ]鹰刃birdblade.jar" -C build/classes .
echo "compiled build/libs/【拔刀附属 ]鹰刃birdblade.jar"
View File
Whitespace-only changes.
Binary file not shown.
@@ -0,0 +1,36 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.event.FMLInitializationEvent
* cpw.mods.fml.common.event.FMLPostInitializationEvent
* cpw.mods.fml.common.event.FMLPreInitializationEvent
*/
package com.tanzanite.birdblade;
import com.tanzanite.birdblade.CommonProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
public class ClientProxy
extends CommonProxy {
@Override
public void preInit(FMLPreInitializationEvent event) {
super.preInit(event);
}
public void initializeItemRenderer() {
}
@Override
public void init(FMLInitializationEvent event) {
super.init(event);
}
@Override
public void postInit(FMLPostInitializationEvent event) {
super.postInit(event);
}
}
@@ -0,0 +1,29 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.event.FMLInitializationEvent
* cpw.mods.fml.common.event.FMLPostInitializationEvent
* cpw.mods.fml.common.event.FMLPreInitializationEvent
* mods.flammpfeil.slashblade.SlashBlade
*/
package com.tanzanite.birdblade;
import com.tanzanite.birdblade.blade.ItemSlashBlade_Bifang;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import mods.flammpfeil.slashblade.SlashBlade;
public class CommonProxy {
public void preInit(FMLPreInitializationEvent event) {
SlashBlade.InitEventBus.register((Object)new ItemSlashBlade_Bifang());
}
public void init(FMLInitializationEvent event) {
}
public void postInit(FMLPostInitializationEvent event) {
}
}
@@ -0,0 +1,66 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.EntityDirectAttackDummy
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.player.EntityPlayer
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.potion.PotionEffect
* net.minecraft.world.World
*/
package com.tanzanite.birdblade.SA;
import mods.flammpfeil.slashblade.EntityDirectAttackDummy;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World;
public class SAslashPierce
extends SpecialAttackBase {
public String toString() {
return "SAslashpierce";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.field_70170_p;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
double playerDist = 8.0;
float attackDist = (float)(playerDist / 3.0);
if (!player.field_70122_E) {
playerDist *= (double)0.35f;
}
player.field_70159_w = -Math.sin(Math.toRadians(player.field_70177_z)) * playerDist;
player.field_70179_y = Math.cos(Math.toRadians(player.field_70177_z)) * playerDist;
if (!world.field_72995_K) {
int cost = -30;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-30), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
player.func_70690_d(new PotionEffect(11, 4, 2, true));
player.func_70690_d(new PotionEffect(5, 4, 3, true));
player.func_70690_d(new PotionEffect(10, 6, 3, true));
player.func_70690_d(new PotionEffect(1, 10, 2, true));
EntityDirectAttackDummy entityDA = new EntityDirectAttackDummy(world, (EntityLivingBase)player, false);
entityDA.setLifeTime(7);
if (entityDA != null) {
world.func_72838_d((Entity)entityDA);
}
}
world.func_72956_a((Entity)player, "birdblade:liexiao", 2.0f, 1.0f);
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.HiraTuki);
}
}
@@ -0,0 +1,44 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.Mod
* cpw.mods.fml.common.Mod$EventHandler
* cpw.mods.fml.common.Mod$Instance
* cpw.mods.fml.common.SidedProxy
* cpw.mods.fml.common.event.FMLInitializationEvent
* cpw.mods.fml.common.event.FMLPostInitializationEvent
* cpw.mods.fml.common.event.FMLPreInitializationEvent
*/
package com.tanzanite.birdblade;
import com.tanzanite.birdblade.CommonProxy;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
@Mod(modid="birdblade", name="birdblade", version="1.0.0", dependencies="required-after:flammpfeil.slashblade")
public class birdblade {
@Mod.Instance(value="birdblade")
public static birdblade instance;
@SidedProxy(clientSide="com.tanzanite.birdblade.ClientProxy", serverSide="com.tanzanite.birdblade.CommonProxy")
public static CommonProxy proxy;
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
proxy.preInit(event);
}
@Mod.EventHandler
public void init(FMLInitializationEvent event) {
proxy.init(event);
}
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {
proxy.postInit(event);
}
}
@@ -0,0 +1,79 @@
/*
* 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.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* mods.flammpfeil.slashblade.stats.AchievementList
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.init.Items
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package com.tanzanite.birdblade.blade;
import com.tanzanite.birdblade.SA.SAslashPierce;
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.RecipeAwakeBlade;
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.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class ItemSlashBlade_Bifang {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
ItemSlashBlade.specialAttacks.put(4000, new SAslashPierce());
String name = "flammpfeil.slashblade.named.bifang";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(163));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(3.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(8.0f));
ItemSlashBlade.TextureName.set(tag, "named/bifang/texture");
ItemSlashBlade.ModelName.set(tag, "named/bifang/model");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(4000));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
tag.func_74778_a("RepairOreDicMaterial", "ingotIron");
tag.func_74768_a("SummonedSwordColor", 2330147);
customblade.func_77966_a(Enchantment.field_77345_t, 3);
customblade.func_77966_a(Enchantment.field_77338_j, 5);
customblade.func_77966_a(Enchantment.field_77347_r, 3);
customblade.func_77966_a(Enchantment.field_92091_k, 10);
customblade.func_77966_a(Enchantment.field_77330_e, 5);
ItemStack custombladeRequired = new ItemStack((Item)SlashBlade.bladeWhiteSheath);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeRequired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(2000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(15000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(15));
ItemStack bifang = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(bifang, custombladeRequired, new Object[]{"VFV", "SBS", "VFV", Character.valueOf('S'), itemSphereBladeSoul, Character.valueOf('B'), custombladeRequired, Character.valueOf('F'), new ItemStack(Items.field_151008_G), Character.valueOf('V'), new ItemStack(Blocks.field_150395_bd)}));
AchievementList.registerCraftingAchievement((String)name, (ItemStack)customblade, null);
}
}
+2
View File
@@ -0,0 +1,2 @@
Summary for /Users/yudiwang/TDLM/5fu/mods/【拔刀附属 ]鹰刃birdblade.jar
Decompiled with CFR 0.152
@@ -0,0 +1,8 @@
item.flammpfeil.slashblade.named.bifang.name=BiFang
flammpfeil.slashblade.specialattack.SAslashpierce=Pierce
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.bifang=¡ìfBiFang
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.bifang.desc=The symbol of nature, the symbol of power.
@@ -0,0 +1,8 @@
item.flammpfeil.slashblade.named.bifang.name=棘羽「毕方」
flammpfeil.slashblade.specialattack.SAslashpierce=裂霄
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.bifang=§f棘羽「毕方」
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.bifang.desc=青水之西,有鸟焉,赤文青质而白喙,名唤毕方,见则其邑有讹火,为黄帝卫车之神鸟
@@ -0,0 +1,4 @@
{
"liexiao": {"category": "master","sounds": ["liexiao"]}
}
File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB