Move Direction enum to :API | remove "world" package segment
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.bartlomiejpluta.base.api.entity;
|
||||
|
||||
public enum Direction {
|
||||
UP(0, -1),
|
||||
DOWN(0, 1),
|
||||
LEFT(-1, 0),
|
||||
RIGHT(1, 0);
|
||||
|
||||
public final int x;
|
||||
public final int y;
|
||||
|
||||
Direction(int x, int y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user