Java Code Examples for cpw.mods.fml.relauncher.Side#CLIENT

The following examples show how to use cpw.mods.fml.relauncher.Side#CLIENT . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TileAuraPylon.java    From Gadomancy with GNU Lesser General Public License v3.0 6 votes vote down vote up
@SideOnly(Side.CLIENT)
private void doEssentiaTrail() {
    if((ticksExisted & 1) == 0) return;
    TileAuraPylon tile = getMasterTile();
    if(tile == null) return;
    TileAuraPylon inputTile = getInputTile();
    if(inputTile == null) return;
    Aspect a = inputTile.getAspectType();
    if(a == null) return;
    if(inputTile.amount <= 0) return;

    int count = 5;
    FXEssentiaTrail essentiaTrail = new FXEssentiaTrail(tile.getWorldObj(), inputTile.xCoord + 0.5, inputTile.yCoord + 0.2, inputTile.zCoord + 0.5, tile.xCoord + 0.5, tile.yCoord + 1.7, tile.zCoord + 0.5, count, a.getColor(), 1);
    essentiaTrail.noClip = true;
    essentiaTrail.motionY = (0.1F + MathHelper.sin(count / 3.0F) * 0.01F);
    essentiaTrail.motionX = (MathHelper.sin(count / 10.0F) * 0.001F + worldObj.rand.nextGaussian() * 0.002000000094994903D);
    essentiaTrail.motionZ = (MathHelper.sin(count / 10.0F) * 0.001F + worldObj.rand.nextGaussian() * 0.002000000094994903D);
    ParticleEngine.instance.addEffect(tile.getWorldObj(), essentiaTrail);
}
 
Example 2
Source File: WailaNBT.java    From wailanbt with MIT License 5 votes vote down vote up
@SuppressWarnings("UnusedDeclaration")
@SideOnly(Side.CLIENT)
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event){
    GuiContainerManager.addTooltipHandler(new TooltipHandler());

}
 
Example 3
Source File: MoCBlockGrass.java    From mocreaturesdev with GNU General Public License v3.0 5 votes vote down vote up
/**
    * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
    */


@SideOnly(Side.CLIENT)
@Override
   public Icon getIcon(int par1Side, int Metadata)
   {
	if (par1Side > 2) par1Side = 2;
       return icons[Metadata][par1Side];
   }
 
Example 4
Source File: BigReactors.java    From BigReactors with MIT License 5 votes vote down vote up
@SideOnly(Side.CLIENT)
public static void setNonBlockFluidIcons() {
	fluidFuelColumn.setIcons(iconFuelColumnStill, iconFuelColumnFlowing);
	
	if(registeredOwnSteam) {
		fluidSteam.setIcons(iconSteamStill, iconSteamFlowing);
	}
}
 
Example 5
Source File: MoCBlockLeaf.java    From mocreaturesdev with GNU General Public License v3.0 5 votes vote down vote up
@SideOnly(Side.CLIENT)
/**
 * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
 */
@Override
public Icon getIcon(int par1, int par2)
{
    return icons[par2];
}
 
Example 6
Source File: ItemStoragePhysical.java    From ExtraCells1 with MIT License 5 votes vote down vote up
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4)
{
	Boolean partitioned = Util.getCellRegistry().getHandlerForCell(stack).isPreformatted();
	Boolean fuzzy = Util.getCellRegistry().getHandlerForCell(stack).isFuzzyPreformatted();
	long used_bytes = Util.getCellRegistry().getHandlerForCell(stack).usedBytes();
	long total_bytes = Util.getCellRegistry().getHandlerForCell(stack).totalBytes();
	long used_types = Util.getCellRegistry().getHandlerForCell(stack).storedItemTypes();
	long total_types = Util.getCellRegistry().getHandlerForCell(stack).getTotalItemTypes();
	if (stack.getItemDamage() != 4)
	{
		list.add(used_bytes + " " + StatCollector.translateToLocal("Appeng.GuiITooltip.Of") + " " + total_bytes + " " + StatCollector.translateToLocal("Appeng.GuiITooltip.BytesUsed"));
		list.add(used_types + " " + StatCollector.translateToLocal("Appeng.GuiITooltip.Of") + " " + total_types + " " + StatCollector.translateToLocal("Appeng.GuiITooltip.Types"));
	} else if (stack.getItemDamage() == 4)
	{
		if (used_bytes != 0)
		{
			list.add(StatCollector.translateToLocal("tooltip.block") + ": " + Util.getCellRegistry().getHandlerForCell(stack).getAvailableItems().getItems().get(0).getDisplayName());
		} else
		{
			list.add(StatCollector.translateToLocal("tooltip.block") + ": -");
		}
		list.add(used_bytes + " " + StatCollector.translateToLocal("Appeng.GuiITooltip.Of") + " " + total_bytes + " " + StatCollector.translateToLocal("Appeng.GuiITooltip.BytesUsed"));
	}
	if (partitioned)
	{
		if (fuzzy)
		{
			list.add(StatCollector.translateToLocal("Appeng.GuiITooltip.Partitioned") + " - " + StatCollector.translateToLocal("Appeng.GuiITooltip.Fuzzy"));
		} else
		{
			list.add(StatCollector.translateToLocal("Appeng.GuiITooltip.Partitioned") + " - " + StatCollector.translateToLocal("Appeng.GuiITooltip.Precise"));
		}
	}
}
 
Example 7
Source File: SubmapManagerSlab.java    From Chisel-2 with GNU General Public License v2.0 5 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
	RenderBlocksCTM rbctm = (RenderBlocksCTM) renderer;
	if (side.ordinal() < 2 && !rbctm.rendererOld.hasOverrideBlockTexture()) {
		rbctm.rendererOld.setOverrideBlockTexture(sideTexture);
		hadOverride = false;
	} else {
		hadOverride = true;
	}
}
 
Example 8
Source File: WorldProviderWyvernEnd.java    From mocreaturesdev with GNU General Public License v3.0 5 votes vote down vote up
@SideOnly(Side.CLIENT)

    /**
     * the y level at which clouds are rendered.
     */
    public float getCloudHeight()
    {
        return 76.0F;
    }
 
Example 9
Source File: EntityBallOMossFX.java    From Chisel with GNU General Public License v2.0 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public int getIconWidth()
{
    return 0;
}
 
Example 10
Source File: ChorusFlower.java    From Et-Futurum with The Unlicense 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
	return meta >= 5 ? deadIcon : blockIcon;
}
 
Example 11
Source File: Drawable.java    From OpenPeripheral-Addons with MIT License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
protected abstract void drawContents(RenderState renderState, float partialTicks);
 
Example 12
Source File: ItemOmnitoolDiamond.java    From Electro-Magic-Tools with GNU General Public License v3.0 4 votes vote down vote up
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister iconRegister) {
    this.itemIcon = iconRegister.registerIcon(ModInformation.texturePath + ":tools/omnitool_diamond");
}
 
Example 13
Source File: ItemUsedSoilKit.java    From GardenCollection with MIT License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
@Override
public IIcon getIconFromDamageForRenderPass (int damage, int pass) {
    return pass == 0 ? iconOverlay : super.getIconFromDamageForRenderPass(damage, pass);
}
 
Example 14
Source File: LingeringPotion.java    From Et-Futurum with The Unlicense 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public boolean hasEffect(ItemStack stack, int pass) {
	return super.hasEffect(stack, pass) && pass == 0;
}
 
Example 15
Source File: ItemCalendar.java    From Artifacts with MIT License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
@Override
   public void registerIcons(IIconRegister iconReg)
   {
	itemIcon = ClientProxy.calendar;
   }
 
Example 16
Source File: ItemSkullAxe.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister ir) {
    this.icon = ir.registerIcon("forbidden:skullaxe");
}
 
Example 17
Source File: ItemArcaneCake.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister ir) {
    this.itemIcon = ir.registerIcon("forbidden:cake");
}
 
Example 18
Source File: ProgWidgetEntityImport.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public GuiScreen getOptionWindow(GuiProgrammer guiProgrammer){
    return new GuiProgWidgetAreaShow(this, guiProgrammer);
}
 
Example 19
Source File: BlockEnderStorage.java    From EnderStorage with MIT License 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister par1IconRegister) {
}
 
Example 20
Source File: BlockLightLevelSensor.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public void drawAdditionalInfo(FontRenderer fontRenderer){}