Commits
TheCutter authored and md_5 committed 7714b7034f4
1160 1160 | public boolean setGameRuleValue(String rule, String value); |
1161 1161 | |
1162 1162 | /** |
1163 1163 | * Checks if string is a valid game rule |
1164 1164 | * |
1165 1165 | * @param rule Rule to check |
1166 1166 | * @return True if rule exists |
1167 1167 | */ |
1168 1168 | public boolean isGameRule(String rule); |
1169 1169 | |
1170 + | /** |
1171 + | * Gets the world border for this world. |
1172 + | * |
1173 + | * @return The world border for this world. |
1174 + | */ |
1175 + | public WorldBorder getWorldBorder(); |
1176 + | |
1170 1177 | /** |
1171 1178 | * Represents various map environment types that a world may be |
1172 1179 | */ |
1173 1180 | public enum Environment { |
1174 1181 | |
1175 1182 | /** |
1176 1183 | * Represents the "normal"/"surface world" map |
1177 1184 | */ |
1178 1185 | NORMAL(0), |
1179 1186 | /** |