Archived
修复遗忘月祈失败雷电性能风险
This commit is contained in:
99 files changed
+478650
No files matched your search
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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.DamageSource
|
||||
* 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.DamageSource;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class PotionDivine
|
||||
extends Potion {
|
||||
public static PotionDivine potion;
|
||||
static final ResourceLocation res;
|
||||
|
||||
public PotionDivine(int p_i1573_1_, boolean p_i1573_2_, int p_i1573_3_) {
|
||||
super(p_i1573_1_, p_i1573_2_, p_i1573_3_);
|
||||
this.func_76390_b("potion.divine");
|
||||
}
|
||||
|
||||
public static void init() {
|
||||
potion.func_76399_b(0, 0);
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public int func_76392_e() {
|
||||
Minecraft.func_71410_x().field_71446_o.func_110577_a(res);
|
||||
return super.func_76392_e();
|
||||
}
|
||||
|
||||
public void func_76394_a(EntityLivingBase p_76394_1_, int p_76394_2_) {
|
||||
p_76394_1_.func_70097_a(new DamageSource("divine").func_82726_p().func_76351_m().func_76348_h(), 3.0f);
|
||||
}
|
||||
|
||||
public boolean func_76397_a(int p_76397_1_, int p_76397_2_) {
|
||||
int k = 25 >> p_76397_2_;
|
||||
return k > 0 ? p_76397_1_ % k == 0 : true;
|
||||
}
|
||||
|
||||
static {
|
||||
res = new ResourceLocation("lostblade", "textures/misc/potion.png");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user