mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 03:15:28 +00:00
Move files
This commit is contained in:
1 parent
a958073079
commit
3429114d2a
274 files changed
+37547
-11
No files matched your search
@@ -0,0 +1,35 @@
|
||||
/*******************************************************************************
|
||||
* Copyright 2011-2014 SirSengir
|
||||
*
|
||||
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
||||
******************************************************************************/
|
||||
package forestry.api.farming;
|
||||
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public enum FarmDirection {
|
||||
NORTH(ForgeDirection.NORTH),
|
||||
EAST(ForgeDirection.EAST),
|
||||
SOUTH(ForgeDirection.SOUTH),
|
||||
WEST(ForgeDirection.WEST);
|
||||
|
||||
private final ForgeDirection forgeDirection;
|
||||
|
||||
FarmDirection(ForgeDirection forgeDirection) {
|
||||
this.forgeDirection = forgeDirection;
|
||||
}
|
||||
|
||||
public ForgeDirection getForgeDirection() {
|
||||
return forgeDirection;
|
||||
}
|
||||
|
||||
public static FarmDirection getFarmDirection(ForgeDirection forgeDirection) {
|
||||
switch (forgeDirection) {
|
||||
case NORTH: return NORTH;
|
||||
case EAST: return EAST;
|
||||
case SOUTH: return SOUTH;
|
||||
case WEST: return WEST;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user