net.minecraft.client.gui.GuiRepair Java Examples

The following examples show how to use net.minecraft.client.gui.GuiRepair. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GuiAnvil.java    From Et-Futurum with The Unlicense 5 votes vote down vote up
public GuiAnvil(EntityPlayer player, World world, int x, int y, int z) {
	super(player.inventory, world, x, y, z);

	ContainerAnvil container = new ContainerAnvil(player, world, x, y, z);
	ReflectionHelper.setPrivateValue(GuiRepair.class, this, container, "field_147092_v");
	inventorySlots = container;
}
 
Example #2
Source File: MenuEventHandler.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@SubscribeEvent
public static void turnMenus(DrawScreenEvent e) {
	if(e.getGui() instanceof GuiRepair)
	e.getGui().drawString(e.getGui().mc.fontRenderer, "Think before you smith", Paranoia.rand.nextInt(e.getGui().width), Paranoia.rand.nextInt(e.getGui().width), Paranoia.rand.nextInt());
}