mirror of
https://github.com/YouHaveTrouble/BlockEdit.git
synced 2026-06-29 21:46:19 +00:00
cleanup
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package me.youhavetrouble.blockedit;
|
package me.youhavetrouble.blockedit;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.BoundingBox;
|
import org.bukkit.util.BoundingBox;
|
||||||
|
|
||||||
@@ -13,7 +12,6 @@ public class BEPlayer {
|
|||||||
private static final HashMap<UUID, BEPlayer> playerHashMap = new HashMap<>();
|
private static final HashMap<UUID, BEPlayer> playerHashMap = new HashMap<>();
|
||||||
private BoundingBox selection;
|
private BoundingBox selection;
|
||||||
private Location selectionPoint1, selectionPoint2;
|
private Location selectionPoint1, selectionPoint2;
|
||||||
private UUID selectionWorldUuid;
|
|
||||||
|
|
||||||
public BoundingBox getSelection() {
|
public BoundingBox getSelection() {
|
||||||
return selection;
|
return selection;
|
||||||
@@ -32,7 +30,6 @@ public class BEPlayer {
|
|||||||
selection = null;
|
selection = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
selectionWorldUuid = selectionPoint1.getWorld().getUID();
|
|
||||||
selection = BoundingBox.of(selectionPoint1, selectionPoint2);
|
selection = BoundingBox.of(selectionPoint1, selectionPoint2);
|
||||||
// bounding boxes are dumb.
|
// bounding boxes are dumb.
|
||||||
selection.expand(0.5, 0.5, 0.5);
|
selection.expand(0.5, 0.5, 0.5);
|
||||||
@@ -52,7 +49,7 @@ public class BEPlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return World withinn which the selection is made.
|
* @return UUID of a world within which the selection is made.
|
||||||
*/
|
*/
|
||||||
public UUID getSelectionWorld() {
|
public UUID getSelectionWorld() {
|
||||||
if (selection == null) return null;
|
if (selection == null) return null;
|
||||||
|
|||||||
@@ -35,8 +35,6 @@ public class SetOperation {
|
|||||||
processChunkWork(chunkwork.get(element.getAndDecrement()), bePlayer.getSelectionWorld());
|
processChunkWork(chunkwork.get(element.getAndDecrement()), bePlayer.getSelectionWorld());
|
||||||
}
|
}
|
||||||
}, 0, 1);
|
}, 0, 1);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processChunkWork(ChunkWork chunkWork, UUID worldUuid) {
|
private void processChunkWork(ChunkWork chunkWork, UUID worldUuid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user