public class ShrinkMapSizeUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SHRINK_EAST
Flag value: remove empty space from east border.
|
static int |
SHRINK_SOUTH
Flag value: remove empty space from south border.
|
Modifier and Type | Method and Description |
---|---|
static int |
getShrinkFlags(@NotNull MapModel<?,?,?> mapModel)
Returns which borders contain empty squares.
|
static void |
shrinkMap(@NotNull MapModel<?,?,?> mapModel,
int shrinkFlags)
Removes empty squares from a map's border.
|
public static final int SHRINK_EAST
public static final int SHRINK_SOUTH
public static void shrinkMap(@NotNull @NotNull MapModel<?,?,?> mapModel, int shrinkFlags)
mapModel
- the map to modifyshrinkFlags
- the borders to modifypublic static int getShrinkFlags(@NotNull @NotNull MapModel<?,?,?> mapModel)
mapModel
- the map to check