From 0c14737891826a0b50d5569e9bced09051ba0c5b Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 31 Mar 2014 18:51:12 -0700 Subject: [PATCH] Renamed BlockMapEntryVisitor to BlockMapEntryPlacer. --- .../sk89q/worldedit/extent/reorder/SimpleBlockReorder.java | 4 ++-- .../BlockMapEntryPlacer.java} | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) rename src/main/java/com/sk89q/worldedit/function/{visitor/BlockMapEntryVisitor.java => operation/BlockMapEntryPlacer.java} (86%) diff --git a/src/main/java/com/sk89q/worldedit/extent/reorder/SimpleBlockReorder.java b/src/main/java/com/sk89q/worldedit/extent/reorder/SimpleBlockReorder.java index 8a08871d0..e077d4c0d 100644 --- a/src/main/java/com/sk89q/worldedit/extent/reorder/SimpleBlockReorder.java +++ b/src/main/java/com/sk89q/worldedit/extent/reorder/SimpleBlockReorder.java @@ -27,9 +27,9 @@ import com.sk89q.worldedit.blocks.BlockID; import com.sk89q.worldedit.blocks.BlockType; import com.sk89q.worldedit.extent.ExtentDelegate; import com.sk89q.worldedit.extent.Extent; +import com.sk89q.worldedit.function.operation.BlockMapEntryPlacer; import com.sk89q.worldedit.function.operation.Operation; import com.sk89q.worldedit.function.operation.OperationQueue; -import com.sk89q.worldedit.function.visitor.BlockMapEntryVisitor; import java.util.*; @@ -110,7 +110,7 @@ public class SimpleBlockReorder extends ExtentDelegate { @Override public Operation commitBefore() { return new OperationQueue( - new BlockMapEntryVisitor( + new BlockMapEntryPlacer( getExtent(), Iterators.concat(stage1.iterator(), stage2.iterator())), new Stage3Committer()); diff --git a/src/main/java/com/sk89q/worldedit/function/visitor/BlockMapEntryVisitor.java b/src/main/java/com/sk89q/worldedit/function/operation/BlockMapEntryPlacer.java similarity index 86% rename from src/main/java/com/sk89q/worldedit/function/visitor/BlockMapEntryVisitor.java rename to src/main/java/com/sk89q/worldedit/function/operation/BlockMapEntryPlacer.java index dee6106ae..deaad0d12 100644 --- a/src/main/java/com/sk89q/worldedit/function/visitor/BlockMapEntryVisitor.java +++ b/src/main/java/com/sk89q/worldedit/function/operation/BlockMapEntryPlacer.java @@ -17,25 +17,24 @@ * along with this program. If not, see . */ -package com.sk89q.worldedit.function.visitor; +package com.sk89q.worldedit.function.operation; import com.sk89q.worldedit.BlockVector; import com.sk89q.worldedit.WorldEditException; import com.sk89q.worldedit.blocks.BaseBlock; import com.sk89q.worldedit.extent.Extent; -import com.sk89q.worldedit.function.operation.Operation; import java.util.Iterator; import java.util.Map; import static com.google.common.base.Preconditions.checkNotNull; -public class BlockMapEntryVisitor implements Operation { +public class BlockMapEntryPlacer implements Operation { private final Extent extent; private final Iterator> iterator; - public BlockMapEntryVisitor(Extent extent, Iterator> iterator) { + public BlockMapEntryPlacer(Extent extent, Iterator> iterator) { checkNotNull(extent); checkNotNull(iterator); this.extent = extent;