mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Apply various common one-to-one replacements
More work on common too. network package now done.
This commit is contained in:
1 parent
a0114b5112
commit
a80f724cc2
189 files changed
+1586
-1634
No files matched your search
@@ -6,16 +6,16 @@ import mekanism.common.util.InventoryUtils;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
|
||||
public class StackSearcher
|
||||
{
|
||||
public int i;
|
||||
public int[] slots;
|
||||
public IInventory theInventory;
|
||||
public ForgeDirection side;
|
||||
public EnumFacing side;
|
||||
|
||||
public StackSearcher(IInventory inventory, ForgeDirection direction)
|
||||
public StackSearcher(IInventory inventory, EnumFacing direction)
|
||||
{
|
||||
theInventory = InventoryUtils.checkChestInv(inventory);
|
||||
side = direction;
|
||||
@@ -25,7 +25,7 @@ public class StackSearcher
|
||||
}
|
||||
else
|
||||
{
|
||||
slots = ((ISidedInventory)theInventory).getAccessibleSlotsFromSide(side.getOpposite().ordinal());
|
||||
slots = ((ISidedInventory)theInventory).getSlotsForFace(side.getOpposite().ordinal());
|
||||
if(slots != null)
|
||||
{
|
||||
i = slots.length;
|
||||
@@ -101,7 +101,7 @@ public class StackSearcher
|
||||
}
|
||||
else {
|
||||
ISidedInventory sidedInventory = (ISidedInventory)theInventory;
|
||||
int[] slots = sidedInventory.getAccessibleSlotsFromSide(side.getOpposite().ordinal());
|
||||
int[] slots = sidedInventory.getSlotsForFace(side.getOpposite().ordinal());
|
||||
|
||||
if(slots != null && slots.length != 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user