Allow the upgrades to be right clicked when in the gui.

This commit is contained in:
modmuss50 2017-04-12 16:21:04 +01:00
parent 5487584f04
commit 088f49c305
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
5 changed files with 117 additions and 2 deletions

View file

@ -42,6 +42,7 @@ import reborncore.common.recipes.RecipeCrafter;
import reborncore.common.tile.TileLegacyMachineBase;
import reborncore.common.util.InventoryHelper;
import techreborn.client.TechRebornCreativeTabMisc;
import techreborn.client.container.builder.BuiltContainer;
import techreborn.init.ModItems;
import javax.annotation.Nonnull;
@ -149,4 +150,13 @@ public class ItemUpgrades extends ItemTRNoDestroy implements IUpgrade {
}
}
}
@Override
public void handleRightClick(TileEntity tile, ItemStack stack, BuiltContainer container) {
if(stack.getItemDamage() == 4){
System.out.println("open a gui here");
} else if(stack.getItemDamage() == 5){
System.out.println("open a gui here");
}
}
}