Files
Chisel/src/main/java/com/cricketcraft/chisel/inventory/SlotChiselPlayer.java
T
tterrag1098 82792ed22e The great format and clean up. IMPORTANT: Read below.
All devs and contributors should use the provided formatter settings. 
If your IDE does not support the format, the rules are simple, it is the
default java formatting rules, with 200char line lengths and 1 extra
line after class definitions.
2015-01-07 19:50:18 -05:00

40 lines
841 B
Java

package com.cricketcraft.chisel.inventory;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class SlotChiselPlayer extends Slot {
public SlotChiselPlayer(ContainerChisel container, InventoryPlayer inv, int i, int j, int k) {
super(inv, i, j, k);
this.container = container;
selInventory = inv;
}
@Override
public boolean isItemValid(ItemStack par1ItemStack) {
return false;
}
@Override
public void onPickupFromSlot(EntityPlayer player, ItemStack itemstack) {
container.finished = true;
}
@Override
public boolean getHasStack() {
return false;
}
@Override
public ItemStack decrStackSize(int i) {
return null;
}
ContainerChisel container;
InventoryPlayer selInventory;
}