Fix rebase errors (Killjoy)

This commit is contained in:
Sollace 2018-08-10 18:17:26 +02:00
parent d5efe0d3f6
commit 45282b147a
2 changed files with 0 additions and 38 deletions

View file

@ -1,7 +0,0 @@
package com.minelittlepony.gui;
import net.minecraft.client.Minecraft;
public interface IGuiTooltipped {
void renderToolTip(Minecraft mc, int mouseX, int mouseY);
}

View file

@ -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);
}
}