Worked on compost block a bit
really just created some place holder files
This commit is contained in:
parent
8beeb5c760
commit
8e7d50e4cf
4 changed files with 27 additions and 4 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
6
src/dark/farmtech/client/GuiCompostBox.java
Normal file
6
src/dark/farmtech/client/GuiCompostBox.java
Normal file
|
@ -0,0 +1,6 @@
|
|||
package dark.farmtech.client;
|
||||
|
||||
public class GuiCompostBox
|
||||
{
|
||||
|
||||
}
|
6
src/dark/farmtech/machines/ContainerCompostBox.java
Normal file
6
src/dark/farmtech/machines/ContainerCompostBox.java
Normal file
|
@ -0,0 +1,6 @@
|
|||
package dark.farmtech.machines;
|
||||
|
||||
public class ContainerCompostBox
|
||||
{
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue