Allow the upgrades to be right clicked when in the gui.
This commit is contained in:
parent
5487584f04
commit
088f49c305
5 changed files with 117 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue