Archived
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]> @
49 lines
1.3 KiB
Java
49 lines
1.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* cpw.mods.fml.relauncher.Side
|
|
* cpw.mods.fml.relauncher.SideOnly
|
|
* net.minecraft.client.Minecraft
|
|
* net.minecraft.entity.EntityLivingBase
|
|
* net.minecraft.potion.Potion
|
|
* net.minecraft.util.ResourceLocation
|
|
*/
|
|
package com.tanzanite.potion;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
import net.minecraft.client.Minecraft;
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
import net.minecraft.potion.Potion;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public class PotionHide
|
|
extends Potion {
|
|
public static PotionHide potion;
|
|
static final ResourceLocation res;
|
|
|
|
public PotionHide(int p_i1573_1_, boolean p_i1573_2_, int p_i1573_3_) {
|
|
super(p_i1573_1_, p_i1573_2_, p_i1573_3_);
|
|
this.setPotionName("potion.hide");
|
|
}
|
|
|
|
public static void init() {
|
|
potion.setIconIndex(1, 0);
|
|
}
|
|
|
|
@SideOnly(value=Side.CLIENT)
|
|
public int getStatusIconIndex() {
|
|
Minecraft.getMinecraft().renderEngine.bindTexture(res);
|
|
return super.getStatusIconIndex();
|
|
}
|
|
|
|
public void performEffect(EntityLivingBase entity, int i) {
|
|
}
|
|
|
|
static {
|
|
res = new ResourceLocation("lostblade", "textures/misc/potion.png");
|
|
}
|
|
}
|
|
|