[1.6.4]Зелье\эффект

Заглянула короче в пакет с эффектами.

Нашла пару строчек.Типа добавление в ArrayList : 
Код:
    public static final Potion confusion = (new Potion(9, true, 5578058)).setPotionName("potion.confusion").setIconIndex(3, 1).setEffectiveness(0.25D);
Ну так вот, объясните мне пожалуйста что означает эта строка(а точнее эти цифры и тп)
А, и еще
Код:
   public static final Potion regeneration = (new Potion(10, false, 13458603)).setPotionName("potion.regeneration").setIconIndex(7, 0).setEffectiveness(0.25D);
Объясните пожалуйста!
 
Agravaine написал(а):
Што? Какой ArrayList? o_O
Смотри)))
Код:
 /** The array of potion types. */
    public static final Potion[] potionTypes = new Potion[32];
    public static final Potion field_76423_b = null;
    public static final Potion moveSpeed = (new Potion(1, false, 8171462)).setPotionName("potion.moveSpeed").setIconIndex(0, 0).func_111184_a(SharedMonsterAttributes.movementSpeed, "91AEAA56-376B-4498-935B-2F7F68070635", 0.20000000298023224D, 2);
И тд
 
Код:
package ModOne.Effects;

import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.Minecraft;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.Configuration;

public class Effect extends Potion {

    public static ResourceLocation textureResource = new ResourceLocation("enviromine", "textures/gui/status_Gui.png");
    
   public static Effect gipotermiya;

   public Effect(int id, boolean isBadEffect, int color, String name) {
      super(id, isBadEffect, color);
      this.setPotionName("potion." + name);
      LanguageRegistry.instance().addStringLocalization(this.getName(), name);
   }

   public Potion setIconIndex(int x, int y) {
      super.setIconIndex(x, y);
      return this;
   }

   public static void loadEffects() {

       gipotermiya = new Effect(29, true, 5149490, "Гипотермия");
   }

   public static void register() {

      Potion.potionTypes[29] = gipotermiya;

   }
   
    @Override
    @SideOnly(Side.CLIENT)
    public boolean hasStatusIcon()
    {
        Minecraft.getMinecraft().renderEngine.bindTexture(textureResource);
        return true;
    }
}
 
HanteR12372 написал(а):
Код:
package ModOne.Effects;

import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.Minecraft;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.Configuration;

public class Effect extends Potion {

    public static ResourceLocation textureResource = new ResourceLocation("enviromine", "textures/gui/status_Gui.png");
    
   public static Effect gipotermiya;

   public Effect(int id, boolean isBadEffect, int color, String name) {
      super(id, isBadEffect, color);
      this.setPotionName("potion." + name);
      LanguageRegistry.instance().addStringLocalization(this.getName(), name);
   }

   public Potion setIconIndex(int x, int y) {
      super.setIconIndex(x, y);
      return this;
   }

   public static void loadEffects() {

       gipotermiya = new Effect(29, true, 5149490, "Гипотермия");
   }

   public static void register() {

      Potion.potionTypes[29] = gipotermiya;

   }
   
    @Override
    @SideOnly(Side.CLIENT)
    public boolean hasStatusIcon()
    {
        Minecraft.getMinecraft().renderEngine.bindTexture(textureResource);
        return true;
    }
}
Видела же..
От тебя температура поднялась и голова болит, спасибо...
 
Назад
Сверху