mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Some work on GUIs, mostly sfx
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user