aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2017-12-24 11:54:30 +1000
committerJordan Byrne <draknyte1@hotmail.com>2017-12-24 11:54:30 +1000
commitecf908e98ccee72a713091e8ab547e35a41d7436 (patch)
treef0dade1481aa02fd0ac4fcf8a672cc7a761a0547 /src/Java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java
parentb9fe3352840abe0846834cefd578895ec6f5e520 (diff)
parentfa5de3584ce7bc97ce6f32b31f6062b5b6e89e75 (diff)
downloadGT5-Unofficial-ecf908e98ccee72a713091e8ab547e35a41d7436.tar.gz
GT5-Unofficial-ecf908e98ccee72a713091e8ab547e35a41d7436.tar.bz2
GT5-Unofficial-ecf908e98ccee72a713091e8ab547e35a41d7436.zip
> Why does Git make me do these? arghhh...
Merge branch 'master' of https://github.com/draknyte1/GTplusplus # Conflicts: # src/Java/gtPlusPlus/core/material/ALLOY.java # src/Java/gtPlusPlus/core/material/ELEMENT.java # src/Java/gtPlusPlus/core/material/Material.java # src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Recycling.java
Diffstat (limited to 'src/Java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java')
-rw-r--r--src/Java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java b/src/Java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java
index 879ba87a0b..286eff9612 100644
--- a/src/Java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java
+++ b/src/Java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java
@@ -5,11 +5,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.inventory.IInventory;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemHoe;
-import net.minecraft.item.ItemPickaxe;
-import net.minecraft.item.ItemStack;
-import net.minecraft.item.ItemSword;
+import net.minecraft.item.*;
import net.minecraft.stats.AchievementList;
public class SlotCraftingNoCollect extends SlotCrafting {
@@ -34,6 +30,7 @@ public class SlotCraftingNoCollect extends SlotCrafting {
* Check if the stack is a valid item for this slot. Always true beside for
* the armor slots.
*/
+ @Override
public boolean isItemValid(ItemStack p_75214_1_) {
return false;
}
@@ -42,6 +39,7 @@ public class SlotCraftingNoCollect extends SlotCrafting {
* Decrease the size of the stack in slot (first int arg) by the amount of
* the second int arg. Returns the new stack.
*/
+ @Override
public ItemStack decrStackSize(int amount) {
if (this.getHasStack()) {
this.amountCrafted += Math.min(amount, this.getStack().stackSize);
@@ -55,6 +53,7 @@ public class SlotCraftingNoCollect extends SlotCrafting {
* not ore and wood. Typically increases an internal count then calls
* onCrafting(item).
*/
+ @Override
protected void onCrafting(ItemStack output, int amount) {
this.amountCrafted += amount;
this.onCrafting(output);
@@ -64,6 +63,7 @@ public class SlotCraftingNoCollect extends SlotCrafting {
* the itemStack passed in is the output - ie, iron ingots, and pickaxes,
* not ore and wood.
*/
+ @Override
protected void onCrafting(ItemStack output) {
output.onCrafting(this.thePlayer.worldObj, this.thePlayer, this.amountCrafted);
this.amountCrafted = 0;
@@ -110,6 +110,7 @@ public class SlotCraftingNoCollect extends SlotCrafting {
}
}
+ @Override
public void onPickupFromSlot(EntityPlayer player, ItemStack output) {
FMLCommonHandler.instance().firePlayerCraftingEvent(player, output, craftMatrix);
this.onCrafting(output);