mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-10-25 20:32:20 +00:00
* Update build script * Update build script to import fix for shadow in dev and sources artifacts * Update fixed build script to shadow csv dependency in dev jar as well * Moved jitpack * Move new files
29 lines
572 B
Java
29 lines
572 B
Java
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;
|
|
}
|