mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Removed messages from EditSession not-null preconditions.
This commit is contained in:
parent
f509a3128e
commit
fd8ad9b988
@ -805,8 +805,8 @@ public class EditSession {
|
|||||||
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
||||||
*/
|
*/
|
||||||
public int fillXZ(Vector origin, Pattern pattern, double radius, int depth, boolean recursive) throws MaxChangedBlocksException {
|
public int fillXZ(Vector origin, Pattern pattern, double radius, int depth, boolean recursive) throws MaxChangedBlocksException {
|
||||||
checkNotNull(origin, "origin must not be null");
|
checkNotNull(origin);
|
||||||
checkNotNull(pattern, "pattern must not be null");
|
checkNotNull(pattern);
|
||||||
checkArgument(radius >= 0, "radius >= 0");
|
checkArgument(radius >= 0, "radius >= 0");
|
||||||
checkArgument(depth >= 1, "depth >= 1");
|
checkArgument(depth >= 1, "depth >= 1");
|
||||||
|
|
||||||
@ -845,7 +845,7 @@ public class EditSession {
|
|||||||
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
||||||
*/
|
*/
|
||||||
public int removeAbove(Vector position, int apothem, int height) throws MaxChangedBlocksException {
|
public int removeAbove(Vector position, int apothem, int height) throws MaxChangedBlocksException {
|
||||||
checkNotNull(position, "position must not be null");
|
checkNotNull(position);
|
||||||
checkArgument(apothem >= 1, "apothem >= 1");
|
checkArgument(apothem >= 1, "apothem >= 1");
|
||||||
checkArgument(height >= 1, "height >= 1");
|
checkArgument(height >= 1, "height >= 1");
|
||||||
|
|
||||||
@ -867,7 +867,7 @@ public class EditSession {
|
|||||||
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
||||||
*/
|
*/
|
||||||
public int removeBelow(Vector position, int apothem, int height) throws MaxChangedBlocksException {
|
public int removeBelow(Vector position, int apothem, int height) throws MaxChangedBlocksException {
|
||||||
checkNotNull(position, "position must not be null");
|
checkNotNull(position);
|
||||||
checkArgument(apothem >= 1, "apothem >= 1");
|
checkArgument(apothem >= 1, "apothem >= 1");
|
||||||
checkArgument(height >= 1, "height >= 1");
|
checkArgument(height >= 1, "height >= 1");
|
||||||
|
|
||||||
@ -889,7 +889,7 @@ public class EditSession {
|
|||||||
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
||||||
*/
|
*/
|
||||||
public int removeNear(Vector position, int blockType, int apothem) throws MaxChangedBlocksException {
|
public int removeNear(Vector position, int blockType, int apothem) throws MaxChangedBlocksException {
|
||||||
checkNotNull(position, "position must not be null");
|
checkNotNull(position);
|
||||||
checkArgument(apothem >= 1, "apothem >= 1");
|
checkArgument(apothem >= 1, "apothem >= 1");
|
||||||
|
|
||||||
Mask mask = new FuzzyBlockMask(new BaseBlock(blockType, -1));
|
Mask mask = new FuzzyBlockMask(new BaseBlock(blockType, -1));
|
||||||
@ -923,8 +923,8 @@ public class EditSession {
|
|||||||
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
||||||
*/
|
*/
|
||||||
public int setBlocks(Region region, Pattern pattern) throws MaxChangedBlocksException {
|
public int setBlocks(Region region, Pattern pattern) throws MaxChangedBlocksException {
|
||||||
checkNotNull(region, "region must not be null");
|
checkNotNull(region);
|
||||||
checkNotNull(pattern, "pattern must not be null");
|
checkNotNull(pattern);
|
||||||
|
|
||||||
BlockReplace replace = new BlockReplace(this, pattern);
|
BlockReplace replace = new BlockReplace(this, pattern);
|
||||||
RegionVisitor visitor = new RegionVisitor(region, replace);
|
RegionVisitor visitor = new RegionVisitor(region, replace);
|
||||||
@ -972,9 +972,9 @@ public class EditSession {
|
|||||||
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
||||||
*/
|
*/
|
||||||
public int replaceBlocks(Region region, Mask mask, Pattern pattern) throws MaxChangedBlocksException {
|
public int replaceBlocks(Region region, Mask mask, Pattern pattern) throws MaxChangedBlocksException {
|
||||||
checkNotNull(region, "region must not be null");
|
checkNotNull(region);
|
||||||
checkNotNull(mask, "mask must not be null");
|
checkNotNull(mask);
|
||||||
checkNotNull(pattern, "pattern must not be null");
|
checkNotNull(pattern);
|
||||||
|
|
||||||
BlockReplace replace = new BlockReplace(this, pattern);
|
BlockReplace replace = new BlockReplace(this, pattern);
|
||||||
RegionMaskFilter filter = new RegionMaskFilter(this, mask, replace);
|
RegionMaskFilter filter = new RegionMaskFilter(this, mask, replace);
|
||||||
@ -994,8 +994,8 @@ public class EditSession {
|
|||||||
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
* @throws MaxChangedBlocksException thrown if too many blocks are changed
|
||||||
*/
|
*/
|
||||||
public int center(Region region, Pattern pattern) throws MaxChangedBlocksException {
|
public int center(Region region, Pattern pattern) throws MaxChangedBlocksException {
|
||||||
checkNotNull(region, "region must not be null");
|
checkNotNull(region);
|
||||||
checkNotNull(pattern, "pattern must not be null");
|
checkNotNull(pattern);
|
||||||
|
|
||||||
Vector center = region.getCenter();
|
Vector center = region.getCenter();
|
||||||
Region centerRegion = new CuboidRegion(
|
Region centerRegion = new CuboidRegion(
|
||||||
|
Loading…
Reference in New Issue
Block a user