Some work on GUIs, mostly sfx

This commit is contained in:
tterrag1098 committed 2014-05-06 02:57:39 -04:00
1 parent 935be33fdf
commit 321fa4ed50
36 files changed
+147 -136

No files matched your search

@@ -5,6 +5,7 @@ import java.util.List;
import mekanism.common.ObfuscatedNames;
import mekanism.common.util.MekanismUtils;
import net.minecraft.client.Minecraft;
import net.minecraft.client.audio.PositionedSoundRecord;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.tileentity.TileEntity;
@@ -66,6 +67,11 @@ public abstract class GuiElement
{
return guiObj.getFont();
}
protected void playClickSound()
{
Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F));
}
public abstract void renderBackground(int xAxis, int yAxis, int guiWidth, int guiHeight);