Search in sources :

Example 41 with SideOnly

use of cpw.mods.fml.relauncher.SideOnly in project ClaySoldiersMod by SanAndreasP.

the class CSMModRegistry method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    manHelper.checkManPack(event.getModMetadata().name);
    if (!manHelper.loading)
        return;
    manHelper.initMan(new SAPConfigManager("ClaySoldiersMod", "ClaySoldiers.txt", "/sanandreasp/"), new SAPLanguageManager("/sanandreasp/ClaySoldiers/", "1.0", "Clay Soldiers Mod"), new SAPUpdateManager("Clay Soldiers Mod", 2, 0, 0, "http://dl.dropbox.com/u/56920617/ClaySoldiersMod2_latest.txt", "http://www.minecraftforum.net/topic/964897-"));
    claySoldierTab = new CreativeTabs("ClaySoldiers") {

        @Override
        @SideOnly(Side.CLIENT)
        public int getTabIconItemIndex() {
            return CSMModRegistry.greyDoll.itemID;
        }
    };
    setIDs();
    SoldierTeams.initDefTeams();
    // Items
    clayDisruptor = (new ItemClayDisruptor(itemIDs[0] - 256)).setUnlocalizedName("claydisruptor").setCreativeTab(this.claySoldierTab);
    greyDoll = (new ItemClayMan(itemIDs[1] - 256, 0)).setUnlocalizedName("claydoll").setCreativeTab(this.claySoldierTab);
    horseDoll = (new ItemHorses(itemIDs[2] - 256, 0)).setUnlocalizedName("horsedoll").setCreativeTab(this.claySoldierTab);
    pegasusDoll = (new ItemHorses(itemIDs[3] - 256, 1)).setUnlocalizedName("pegasusdoll").setCreativeTab(this.claySoldierTab);
    bunnyDoll = (new ItemBunny(itemIDs[4] - 256)).setUnlocalizedName("bunnydoll").setCreativeTab(this.claySoldierTab);
    geckoDoll = (new ItemGecko(itemIDs[5] - 256)).setUnlocalizedName("geckodoll").setCreativeTab(this.claySoldierTab);
    brickDoll = (new ItemGlobal(itemIDs[6] - 256)).setIconFile("ClaySoldiersMod:dollBrick").setUnlocalizedName("brickDoll").setCreativeTab(this.claySoldierTab);
    clayCookie = (new ItemGlobal(itemIDs[7] - 256)).setIconFile("ClaySoldiersMod:noms").setUnlocalizedName("clayCookie").setCreativeTab(this.claySoldierTab);
    turtleDoll = (new ItemTurtle(itemIDs[8] - 256)).setUnlocalizedName("clayturtle").setCreativeTab(this.claySoldierTab);
    shield = (new ItemDebugShield(itemIDs[9] - 256)).setUnlocalizedName("clayshield");
    nexus = (new ItemNexus(itemIDs[10] - 256)).setUnlocalizedName("claynexus").setCreativeTab(this.claySoldierTab);
    shearBlade = (new ItemGlobal(itemIDs[11] - 256)).setIconFile("ClaySoldiersMod:shearBlade").setUnlocalizedName("clayShearBlade").setCreativeTab(this.claySoldierTab);
    brickLump = (new ItemGlobal(itemIDs[12] - 256)).setIconFile("ClaySoldiersMod:brickLump").setUnlocalizedName("brickLump").setCreativeTab(this.claySoldierTab);
    arenaPlacer = (new ItemArenaPlacer(itemIDs[13] - 256)).setUnlocalizedName("arenaPlacer").setCreativeTab(this.claySoldierTab);
}
Also used : ItemDebugShield(sanandreasp.mods.ClaySoldiersMod.item.ItemDebugShield) ItemTurtle(sanandreasp.mods.ClaySoldiersMod.item.ItemTurtle) ItemClayDisruptor(sanandreasp.mods.ClaySoldiersMod.item.ItemClayDisruptor) SAPLanguageManager(sanandreasp.core.manpack.managers.SAPLanguageManager) ItemHorses(sanandreasp.mods.ClaySoldiersMod.item.ItemHorses) ItemBunny(sanandreasp.mods.ClaySoldiersMod.item.ItemBunny) ItemGlobal(sanandreasp.mods.ClaySoldiersMod.item.ItemGlobal) SideOnly(cpw.mods.fml.relauncher.SideOnly) CreativeTabs(net.minecraft.creativetab.CreativeTabs) SAPUpdateManager(sanandreasp.core.manpack.managers.SAPUpdateManager) ItemGecko(sanandreasp.mods.ClaySoldiersMod.item.ItemGecko) ItemNexus(sanandreasp.mods.ClaySoldiersMod.item.ItemNexus) ItemArenaPlacer(sanandreasp.mods.ClaySoldiersMod.item.ItemArenaPlacer) SAPConfigManager(sanandreasp.core.manpack.managers.SAPConfigManager) ItemClayMan(sanandreasp.mods.ClaySoldiersMod.item.ItemClayMan)

Example 42 with SideOnly

use of cpw.mods.fml.relauncher.SideOnly in project TecTech by Technus.

the class GT_MetaTileEntity_DataReader method registerIcons.

@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister aBlockIconRegister) {
    super.registerIcons(aBlockIconRegister);
    READER_ONLINE = new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("iconsets/READER_ONLINE"));
    READER_OFFLINE = new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("iconsets/READER_OFFLINE"));
}
Also used : GT_RenderedTexture(gregtech.api.objects.GT_RenderedTexture) Textures(gregtech.api.enums.Textures) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Example 43 with SideOnly

use of cpw.mods.fml.relauncher.SideOnly in project TecTech by Technus.

the class GT_MetaTileEntity_DebugStructureWriter method registerIcons.

@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister aBlockIconRegister) {
    super.registerIcons(aBlockIconRegister);
    MARK = new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("iconsets/MARK"));
}
Also used : GT_RenderedTexture(gregtech.api.objects.GT_RenderedTexture) Textures(gregtech.api.enums.Textures) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Example 44 with SideOnly

use of cpw.mods.fml.relauncher.SideOnly in project TecTech by Technus.

the class GT_MetaTileEntity_OwnerDetector method registerIcons.

@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister aBlockIconRegister) {
    super.registerIcons(aBlockIconRegister);
    OWNER_ONLINE = new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("iconsets/OWNER_ONLINE"));
    OWNER_OFFLINE = new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("iconsets/OWNER_OFFLINE"));
}
Also used : GT_RenderedTexture(gregtech.api.objects.GT_RenderedTexture) Textures(gregtech.api.enums.Textures) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Example 45 with SideOnly

use of cpw.mods.fml.relauncher.SideOnly in project Armourers-Workshop by RiskyKen.

the class ToolOptionRadius method getGuiControl.

@SideOnly(Side.CLIENT)
@Override
public GuiButton getGuiControl(int id, int x, int y, NBTTagCompound compound) {
    GuiSlider sliderControl = new GuiSlider(id, x, y, getLocalisedLabel() + " ", 1, 6, (Integer) readFromNBT(compound), null);
    sliderControl.showDecimal = false;
    return sliderControl;
}
Also used : GuiSlider(cpw.mods.fml.client.config.GuiSlider) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Aggregations

SideOnly (cpw.mods.fml.relauncher.SideOnly)204 ItemStack (net.minecraft.item.ItemStack)52 IIcon (net.minecraft.util.IIcon)17 ForgeDirection (net.minecraftforge.common.util.ForgeDirection)17 Vec3dCube (uk.co.qmunity.lib.vec.Vec3dCube)13 Block (net.minecraft.block.Block)12 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)10 TileEntity (net.minecraft.tileentity.TileEntity)10 AxisAlignedBB (net.minecraft.util.AxisAlignedBB)9 SubscribeEvent (cpw.mods.fml.common.eventhandler.SubscribeEvent)8 ArrayList (java.util.ArrayList)8 Rotation (uk.co.qmunity.lib.transform.Rotation)8 AMParticle (am2.particles.AMParticle)6 IconFlipped (net.minecraft.client.renderer.IconFlipped)6 ItemBlock (net.minecraft.item.ItemBlock)6 Minecraft (net.minecraft.client.Minecraft)5 Tessellator (net.minecraft.client.renderer.Tessellator)5 EntityPlayer (net.minecraft.entity.player.EntityPlayer)5 GuiScreen (net.minecraft.client.gui.GuiScreen)4 RenderHelper (uk.co.qmunity.lib.client.render.RenderHelper)4