@SideOnly(Side.CLIENT)

This commit is contained in:
DarkGuardsman 2013-09-05 20:47:03 -04:00
parent e1256face0
commit 13815689a2
8 changed files with 29 additions and 8 deletions

View file

@ -8,17 +8,18 @@ import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import dark.core.client.renders.RenderCopperWire;
import dark.core.common.CommonProxy;
import dark.core.common.CoreRecipeLoader;
import dark.core.common.DarkMain;
import dark.core.common.transmit.TileEntityWire;
@SideOnly(Side.CLIENT)
public class ClientProxy extends CommonProxy
{
/** Renders a laser beam from one power to another by a set color for a set time
*
*
* @param world - world this laser is to be rendered in
* @param position - start vector3
* @param target - end vector3

View file

@ -14,11 +14,14 @@ import org.lwjgl.opengl.GL11;
import universalelectricity.core.vector.Vector3;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import dark.core.common.DarkMain;
/** Based off Thaumcraft's Beam Renderer.
*
*
* @author Calclavia, Azanor */
@SideOnly(Side.CLIENT)
public class FXBeam extends EntityFX
{
double movX = 0.0D;

View file

@ -14,10 +14,14 @@ import net.minecraftforge.fluids.FluidStack;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import universalelectricity.core.vector.Vector3;
import dark.core.prefab.helpers.BlockRenderInfo;
/** @author CovertJaguar <railcraft.wikispaces.com> from BuildCraft , modified by DarkGuardsman */
@SideOnly(Side.CLIENT)
public class FluidBlockRenderer
{
private static Map<Fluid, int[]> flowingRenderCache = new HashMap<Fluid, int[]>();

View file

@ -18,10 +18,13 @@ import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import universalelectricity.core.vector.Vector3;
import dark.core.prefab.helpers.BlockRenderInfo;
import dark.core.prefab.helpers.EntityFakeBlock;
@SideOnly(Side.CLIENT)
public class RenderFakeBlock extends Render
{
/** Render instance */
@ -86,7 +89,7 @@ public class RenderFakeBlock extends Render
}
/** Renders a block at given location
*
*
* @param blockInterface - class used to store info for the render process
* @param world - world rendering in
* @param x - position on x axis

View file

@ -51,6 +51,7 @@ public class BlockBasalt extends Block
}
@Override
@SideOnly(Side.CLIENT)
public boolean renderAsNormalBlock()
{
return true;
@ -62,6 +63,8 @@ public class BlockBasalt extends Block
return true;
}
@Override
@SideOnly(Side.CLIENT)
public Icon getIcon(int side, int meta)
{
if (meta < this.icons.length)

View file

@ -28,6 +28,7 @@ public class BlockColorGlass extends BlockColored
}
@SideOnly(Side.CLIENT)
@Override
public int getRenderBlockPass()
{
return 1;
@ -39,7 +40,7 @@ public class BlockColorGlass extends BlockColored
return false;
}
@Override
@Override @SideOnly(Side.CLIENT)
public boolean renderAsNormalBlock()
{
return false;

View file

@ -22,16 +22,19 @@ public class BlockColorSand extends BlockColored
public static boolean fallInstantly = true;
@Override
public void onBlockAdded(World par1World, int par2, int par3, int par4)
{
par1World.scheduleBlockUpdate(par2, par3, par4, this.blockID, this.tickRate());
}
@Override
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
{
par1World.scheduleBlockUpdate(par2, par3, par4, this.blockID, this.tickRate());
}
@Override
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
if (!par1World.isRemote)

View file

@ -3,6 +3,9 @@ package dark.core.common.blocks;
import java.util.List;
import java.util.Set;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
@ -40,7 +43,7 @@ public class BlockOre extends Block implements IExtraObjectInfo
}
}
@Override
@Override @SideOnly(Side.CLIENT)
public void registerIcons(IconRegister par1IconRegister)
{
for (int i = 0; i < EnumMeterials.values().length; i++)
@ -52,7 +55,7 @@ public class BlockOre extends Block implements IExtraObjectInfo
}
}
@Override
@Override @SideOnly(Side.CLIENT)
public Icon getIcon(int side, int metadata)
{
if (this.icons[metadata] != null)