本模组的一种药水效果,附源代码:
public DecayPotion() {
super("decay", true, 2490656, 0);
effects.add(new PotionEffect(MobEffects.field_82731_v, Decay.duration * 20, Decay.strength));
PotionEffect[] e = effects.<PotionEffect>toArray(new PotionEffect[0]);
type = (PotionType)(new PotionType(this.field_76416_I, e)).setRegistryName(new ResourceLocation(getModId(), this.field_76416_I));
ProxyRegistry.register((IForgeRegistryEntry)type);
}
资料分类: | DEBUFF |