mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
Carrot is not fruit (#27)
* Carrot is not fruit * updateBuildScript & spotlessApply
This commit is contained in:
1 parent
6973dbc80d
commit
c5c3aee2fb
1345 files changed
+92079
-90006
No files matched your search
@@ -8,28 +8,32 @@ 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);
|
||||
NORTH(ForgeDirection.NORTH),
|
||||
EAST(ForgeDirection.EAST),
|
||||
SOUTH(ForgeDirection.SOUTH),
|
||||
WEST(ForgeDirection.WEST);
|
||||
|
||||
private final ForgeDirection forgeDirection;
|
||||
private final ForgeDirection forgeDirection;
|
||||
|
||||
FarmDirection(ForgeDirection forgeDirection) {
|
||||
this.forgeDirection = forgeDirection;
|
||||
}
|
||||
FarmDirection(ForgeDirection forgeDirection) {
|
||||
this.forgeDirection = forgeDirection;
|
||||
}
|
||||
|
||||
public ForgeDirection getForgeDirection() {
|
||||
return 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;
|
||||
}
|
||||
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