Initial Commit

This commit is contained in:
Chicken-Bomes committed 2014-04-29 10:54:20 +10:00
commit bd9d0a4eff
149 files changed
+18486

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
package codechicken.nei;
import codechicken.nei.api.IStackPositioner;
import java.util.ArrayList;
public class OffsetPositioner implements IStackPositioner
{
public OffsetPositioner(int x, int y)
{
offsetx = x;
offsety = y;
}
@Override
public ArrayList<PositionedStack> positionStacks(ArrayList<PositionedStack> ai)
{
for(PositionedStack stack : ai)
{
stack.relx+=offsetx;
stack.rely+=offsety;
}
return ai;
}
public int offsetx;
public int offsety;
}