mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-23 12:58:01 +01:00
Fix rebase errors (Killjoy)
This commit is contained in:
parent
d5efe0d3f6
commit
45282b147a
2 changed files with 0 additions and 38 deletions
|
@ -1,7 +0,0 @@
|
||||||
package com.minelittlepony.gui;
|
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
|
|
||||||
public interface IGuiTooltipped {
|
|
||||||
void renderToolTip(Minecraft mc, int mouseX, int mouseY);
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
package com.minelittlepony.gui;
|
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.init.Items;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
|
|
||||||
public class IconicButton extends Button {
|
|
||||||
|
|
||||||
private ItemStack itemStack = ItemStack.EMPTY;
|
|
||||||
|
|
||||||
public IconicButton(int x, int y, IGuiAction<IconicButton> callback) {
|
|
||||||
super(x, y, 20, 20, "", callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
public IconicButton setIcon(ItemStack stack) {
|
|
||||||
itemStack = stack;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public IconicButton setIcon(ItemStack stack, int colour) {
|
|
||||||
Items.LEATHER_LEGGINGS.setColor(stack, colour);
|
|
||||||
return setIcon(stack);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks) {
|
|
||||||
super.drawButton(mc, mouseX, mouseY, partialTicks);
|
|
||||||
|
|
||||||
mc.getRenderItem().renderItemIntoGUI(itemStack, x + 2, y + 2);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue