Commented code is dead code!

This commit is contained in:
Electroblob77
2019-09-04 11:48:19 +01:00
parent 3a788c867c
commit eef48f319a
2 changed files with 1 additions and 76 deletions
@@ -67,59 +67,4 @@ public final class WizardryRecipes {
}
}
// @SubscribeEvent
// public static void onPlayerTickEvent(TickEvent.PlayerTickEvent event){
//
// if(event.phase == TickEvent.Phase.START){
//
// if(event.player.openContainer instanceof ContainerWorkbench){
//
// IInventory craftMatrix = ((ContainerWorkbench)event.player.openContainer).craftMatrix;
// ItemStack output = ((ContainerWorkbench)event.player.openContainer).craftResult.getStackInSlot(0);
// processManaFlaskCrafting(craftMatrix, output);
//
// }else if(event.player.openContainer instanceof ContainerPlayer){
//
// IInventory craftMatrix = ((ContainerPlayer)event.player.openContainer).craftMatrix;
// ItemStack output = ((ContainerPlayer)event.player.openContainer).craftResult.getStackInSlot(0);
// // Unfortunately I have no choice but to call this method every tick when the player isn't using another
// // inventory, since the only thing tracking whether the player is looking at their inventory is the GUI
// // itself, which is client-side only.
// processManaFlaskCrafting(craftMatrix, output);
// }
// }
// }
//
// private static void processManaFlaskCrafting(IInventory craftMatrix, ItemStack output){
//
// // Charges wand using mana flask
//
// ItemManaFlask flask = null;
// ItemStack input = ItemStack.EMPTY;
//
// for(int i = 0; i < craftMatrix.getSizeInventory(); i++){
//
// ItemStack stack = craftMatrix.getStackInSlot(i);
//
// if(stack.getItem() instanceof ItemManaFlask){
// flask = (ItemManaFlask)stack.getItem();
// }
//
// if(stack.getItem() instanceof IManaStoringItem){
// input = stack;
// }
// }
//
// if(flask == null) return;
//
// if(output.getItem() instanceof IManaStoringItem && !input.isEmpty()){
//
// output.setTagCompound((input.getTagCompound()));
//
// int currentMana = ((IManaStoringItem)input.getItem()).getMana(input);
//
// ((IManaStoringItem)output.getItem()).setMana(output, Math.min(currentMana + flask.size.capacity,
// ((IManaStoringItem)input.getItem()).getManaCapacity(input)));
// }
// }
}