mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 03:05:10 +00:00
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.
This commit is contained in:
1 parent
06c5f5930f
commit
82792ed22e
136 files changed
+10365
-11272
No files matched your search
@@ -4,39 +4,37 @@ 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;
|
||||
}
|
||||
public class SlotChiselInput extends Slot {
|
||||
|
||||
@Override
|
||||
public boolean isItemValid(ItemStack itemstack)
|
||||
{
|
||||
if(container.finished) return false;
|
||||
public SlotChiselInput(ContainerChisel container, InventoryChiselSelection inv, int i, int j, int k) {
|
||||
super(inv, i, j, k);
|
||||
selInventory = inv;
|
||||
this.container = container;
|
||||
}
|
||||
|
||||
return super.isItemValid(itemstack);
|
||||
}
|
||||
@Override
|
||||
public boolean isItemValid(ItemStack itemstack) {
|
||||
if (container.finished)
|
||||
return false;
|
||||
|
||||
@Override
|
||||
public boolean canTakeStack(EntityPlayer par1EntityPlayer)
|
||||
{
|
||||
return !container.finished && super.canTakeStack(par1EntityPlayer);
|
||||
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();
|
||||
}
|
||||
@Override
|
||||
public void onSlotChanged() {
|
||||
if (container.finished)
|
||||
return;
|
||||
|
||||
ContainerChisel container;
|
||||
InventoryChiselSelection selInventory;
|
||||
super.onSlotChanged();
|
||||
selInventory.updateItems();
|
||||
}
|
||||
|
||||
ContainerChisel container;
|
||||
InventoryChiselSelection selInventory;
|
||||
}
|
||||
Reference in new issue
Block a user