Created
May 20, 2015 16:07
-
-
Save anonymous/401adaf95609faa2d117 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.ah26.futura.common; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.inventory.IInventory; | |
import net.minecraft.inventory.Slot; | |
import net.minecraft.item.ItemStack; | |
public class SlotResult extends Slot { | |
public SlotResult(IInventory inventory, int id, int x, int y) | |
{ | |
super(inventory, id, x, y); | |
} | |
@Override | |
public boolean isItemValid(ItemStack stack) //Interdit la pose d'items dans le slot | |
{ | |
return false; | |
} | |
public ItemStack decrStackSize(int amount) | |
{ | |
return super.decrStackSize(amount); | |
} | |
public void onPickupFromSlot(EntityPlayer player, ItemStack stack) | |
{ | |
super.onCrafting(stack); | |
super.onPickupFromSlot(player, stack); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment