mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 03:05:10 +00:00
Change package name for realsies now :P
This commit is contained in:
1 parent
4d8df815cc
commit
dae454dc17
138 files changed
+491
-438
No files matched your search
@@ -0,0 +1,42 @@
|
||||
package com.cricketcraft.chisel.inventory;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class SlotChiselInput extends Slot
|
||||
{
|
||||
public SlotChiselInput(ContainerChisel container, InventoryChiselSelection inv, int i, int j, int k)
|
||||
{
|
||||
super(inv, i, j, k);
|
||||
selInventory = inv;
|
||||
this.container = container;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isItemValid(ItemStack itemstack)
|
||||
{
|
||||
if(container.finished) return false;
|
||||
|
||||
return super.isItemValid(itemstack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canTakeStack(EntityPlayer par1EntityPlayer)
|
||||
{
|
||||
return !container.finished && super.canTakeStack(par1EntityPlayer);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSlotChanged()
|
||||
{
|
||||
if(container.finished) return;
|
||||
|
||||
super.onSlotChanged();
|
||||
selInventory.updateItems();
|
||||
}
|
||||
|
||||
ContainerChisel container;
|
||||
InventoryChiselSelection selInventory;
|
||||
}
|
||||
Reference in new issue
Block a user