Worked on compost block a bit

really just created some place holder files
This commit is contained in:
DarkGuardsman 2013-08-30 20:10:40 -04:00
parent 8beeb5c760
commit 8e7d50e4cf
4 changed files with 27 additions and 4 deletions

View file

@ -33,7 +33,7 @@ public class DecayMatterList
}
}
public boolean isDecayMatter(ItemStack stack)
public static boolean isDecayMatter(ItemStack stack)
{
return stack != null && compostList.containsKey(new Pair<Integer, Integer>(stack.itemID, stack.getItemDamage()));
}

View file

@ -0,0 +1,6 @@
package dark.farmtech.client;
public class GuiCompostBox
{
}

View file

@ -0,0 +1,6 @@
package dark.farmtech.machines;
public class ContainerCompostBox
{
}

View file

@ -1,20 +1,31 @@
package dark.farmtech.machines;
import dark.api.farm.DecayMatterList;
import dark.interfaces.IInvBox;
import dark.prefab.InvChest;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.ForgeDirection;
public class TileEntityCompBox extends TileEntityFT
{
@Override
public IInvBox getInventory()
{
if (inventory == null)
{
inventory = new InvChest(this, 6);
}
return inventory;
}
@Override
public boolean canStore(ItemStack stack, int slot, ForgeDirection side)
{
return false;
return stack != null && DecayMatterList.isDecayMatter(stack);
}
@Override
public boolean canRemove(ItemStack stack, int slot, ForgeDirection side)
{
return false;
return stack != null && !DecayMatterList.isDecayMatter(stack);
}
}