Skip to content

Commit

Permalink
Removed some sysouts
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisMcReu committed Sep 25, 2016
1 parent 086b13d commit 3bfa2d5
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,58 +1,29 @@
package com.uberverse.arkcraft.client.gui.overlay;

import com.uberverse.arkcraft.ARKCraft;
import com.uberverse.arkcraft.client.event.ClientEventHandler;
import com.uberverse.arkcraft.common.arkplayer.ARKPlayer;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

public class GUIOverlayARKMode extends Gui
{
private static final Minecraft mc = Minecraft.getMinecraft();
private static final TextureMap iconLocation =
new TextureMap(ARKCraft.MODID + "textures/items/azul.png");
public static int count = 0;

/*
* public void test() {
* System.out.println(ClientEventHandler.openOverlay());
* //ClientEventHandler evt = new ClientEventHandler(); if (allowGuiOpen !=
* ClientEventHandler.openOverlay()) { allowGuiOpen = true;
* System.out.println(allowGuiOpen); } }
*/

@SubscribeEvent
public void renderGUIOverlay(RenderGameOverlayEvent.Post e)
{
if (ARKPlayer.isARKMode(Minecraft.getMinecraft().thePlayer))
if (ARKPlayer.isARKMode(mc.thePlayer))
{
EntityPlayer p = mc.thePlayer;
ItemStack stack = p.getCurrentEquippedItem();
ClientEventHandler handler = new ClientEventHandler();

if (e.type.equals(ElementType.HELMET))
{
String text = "ARK Enabled";

// this.mc.renderEngine.bindTexture(new
// ResourceLocation(ARKCraft.MODID,
// "textures/items/azul.png"));
// this.drawTexturedModalRect(8, 8, 0, 0, 256, 256);
// this.drawTexturedModalRect(posX + 8, posY + 8, 0, 0, 256,
// 256);
// this.drawTexturedModalRect(xCoord, yCoord, textureSprite,
// p_175175_4_, p_175175_5_);
int x = 2;
int y = 2;
drawString(mc.fontRendererObj, text, x, y, 0xFFFFFFFF);
// this.drawTexturedModalRect(x + 8, y + 8, 0, 0, 32, 32);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,6 @@ void consume(IInventory inv, ItemQuality quality)
Arrays.fill(consumed, false);
Arrays.fill(yetFound, 0);

System.out.println(getResourceMultiplier(quality));

Item[] items = CollectionUtil.convert(this.items, (AbstractItemStack i) -> i.item).toArray(new Item[0]);
Integer[] required = CollectionUtil.convert(this.items, (AbstractItemStack i) -> (int) (i.getAmount()
* getResourceMultiplier(quality))).toArray(new Integer[0]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public default void update()
grantXP(getLevelable());
if (c.getCount() <= 0)
{
System.out.println("do this");
craftingQueue.remove();
}
sync();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ public void update()
progress++;
// TODO implement composting time
// done composting
if (progress > 100)
{
System.out.println("progress " + progress);
if (consume()) findProcess();
}
if (progress > 100) if (consume()) findProcess();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ public static ItemStack getContainerItem(ItemStack stack)
private void setState(int age)
{
IBlockState state = worldObj.getBlockState(pos);
// System.out.println(state);
if (((Integer) state.getValue(BlockCropPlot.AGE)) != age)
{
TileEntity tileentity = worldObj.getTileEntity(pos);
Expand Down

0 comments on commit 3bfa2d5

Please sign in to comment.