mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-12 00:17:51 +00:00
24 lines
552 B
Java
24 lines
552 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;
|
|
}
|