The great format and clean up. IMPORTANT: Read below.

All devs and contributors should use the provided formatter settings. 
If your IDE does not support the format, the rules are simple, it is the
default java formatting rules, with 200char line lengths and 1 extra
line after class definitions.
This commit is contained in:
tterrag1098 committed 2015-01-07 19:50:18 -05:00
1 parent 06c5f5930f
commit 82792ed22e
136 files changed
+10365 -11272

No files matched your search

@@ -9,33 +9,29 @@ import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
public class GeneralClient
{
public static Random rand = new Random();
public static void playChiselSound(World world, int x, int y, int z, String sound)
{
Minecraft.getMinecraft().theWorld.playSound(x + 0.5, y + 0.5, z + 0.5, sound, 0.3f + 0.7f * rand.nextFloat(), 0.6f + 0.4f * rand.nextFloat(), true);
}
public class GeneralClient {
public static Random rand = new Random();
public static IIcon getMissingIcon()
{
return ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture(TextureMap.locationBlocksTexture)).getAtlasSprite("missingno");
}
public static void playChiselSound(World world, int x, int y, int z, String sound) {
Minecraft.getMinecraft().theWorld.playSound(x + 0.5, y + 0.5, z + 0.5, sound, 0.3f + 0.7f * rand.nextFloat(), 0.6f + 0.4f * rand.nextFloat(), true);
}
static HashMap<String, ResourceLocation> resources = new HashMap<String, ResourceLocation>();
public static IIcon getMissingIcon() {
return ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture(TextureMap.locationBlocksTexture)).getAtlasSprite("missingno");
}
public static void bind(String textureName)
{
ResourceLocation res = resources.get(textureName);
static HashMap<String, ResourceLocation> resources = new HashMap<String, ResourceLocation>();
if(res == null)
{
res = new ResourceLocation(textureName);
resources.put(textureName, res);
}
public static void bind(String textureName) {
ResourceLocation res = resources.get(textureName);
Minecraft.getMinecraft().getTextureManager().bindTexture(res);
}
if (res == null) {
res = new ResourceLocation(textureName);
resources.put(textureName, res);
}
Minecraft.getMinecraft().getTextureManager().bindTexture(res);
}
}