From 3f2afa95816ef691a7cc14a46faa38996d817367 Mon Sep 17 00:00:00 2001 From: Wizjany Date: Fri, 22 Apr 2011 01:09:16 +0800 Subject: [PATCH] Fixed for 1.4_00_01 and fixed typo. --- src/com/sk89q/worldedit/bukkit/BukkitWorld.java | 10 +++++----- ...Degate.java => EditSessionBlockChangeDelegate.java} | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) rename src/com/sk89q/worldedit/bukkit/{EditSessionBlockChangeDegate.java => EditSessionBlockChangeDelegate.java} (82%) diff --git a/src/com/sk89q/worldedit/bukkit/BukkitWorld.java b/src/com/sk89q/worldedit/bukkit/BukkitWorld.java index aabdaef46..2a729dca9 100644 --- a/src/com/sk89q/worldedit/bukkit/BukkitWorld.java +++ b/src/com/sk89q/worldedit/bukkit/BukkitWorld.java @@ -312,7 +312,7 @@ public class BukkitWorld extends LocalWorld { @Override public boolean generateTree(EditSession editSession, Vector pt) { return world.generateTree(BukkitUtil.toLocation(world, pt), TreeType.TREE, - new EditSessionBlockChangeDegate(editSession)); + new EditSessionBlockChangeDelegate(editSession)); } /** @@ -324,7 +324,7 @@ public class BukkitWorld extends LocalWorld { @Override public boolean generateBigTree(EditSession editSession, Vector pt) { return world.generateTree(BukkitUtil.toLocation(world, pt), TreeType.BIG_TREE, - new EditSessionBlockChangeDegate(editSession)); + new EditSessionBlockChangeDelegate(editSession)); } /** @@ -336,7 +336,7 @@ public class BukkitWorld extends LocalWorld { @Override public boolean generateBirchTree(EditSession editSession, Vector pt) { return world.generateTree(BukkitUtil.toLocation(world, pt), TreeType.BIRCH, - new EditSessionBlockChangeDegate(editSession)); + new EditSessionBlockChangeDelegate(editSession)); } /** @@ -348,7 +348,7 @@ public class BukkitWorld extends LocalWorld { @Override public boolean generateRedwoodTree(EditSession editSession, Vector pt) { return world.generateTree(BukkitUtil.toLocation(world, pt), TreeType.REDWOOD, - new EditSessionBlockChangeDegate(editSession)); + new EditSessionBlockChangeDelegate(editSession)); } /** @@ -360,7 +360,7 @@ public class BukkitWorld extends LocalWorld { @Override public boolean generateTallRedwoodTree(EditSession editSession, Vector pt) { return world.generateTree(BukkitUtil.toLocation(world, pt), TreeType.TALL_REDWOOD, - new EditSessionBlockChangeDegate(editSession)); + new EditSessionBlockChangeDelegate(editSession)); } /** diff --git a/src/com/sk89q/worldedit/bukkit/EditSessionBlockChangeDegate.java b/src/com/sk89q/worldedit/bukkit/EditSessionBlockChangeDelegate.java similarity index 82% rename from src/com/sk89q/worldedit/bukkit/EditSessionBlockChangeDegate.java rename to src/com/sk89q/worldedit/bukkit/EditSessionBlockChangeDelegate.java index a77129ffb..ac24f68de 100644 --- a/src/com/sk89q/worldedit/bukkit/EditSessionBlockChangeDegate.java +++ b/src/com/sk89q/worldedit/bukkit/EditSessionBlockChangeDelegate.java @@ -30,14 +30,14 @@ import com.sk89q.worldedit.blocks.BaseBlock; * * @author sk89q */ -public class EditSessionBlockChangeDegate implements BlockChangeDelegate { +public class EditSessionBlockChangeDelegate implements BlockChangeDelegate { private EditSession editSession; - public EditSessionBlockChangeDegate(EditSession editSession) { + public EditSessionBlockChangeDelegate(EditSession editSession) { this.editSession = editSession; } - public boolean setTypeId(int x, int y, int z, int typeId) { + public boolean setRawTypeId(int x, int y, int z, int typeId) { try { return editSession.setBlock(new Vector(x, y, z), new BaseBlock(typeId)); } catch (MaxChangedBlocksException ex) { @@ -45,7 +45,7 @@ public class EditSessionBlockChangeDegate implements BlockChangeDelegate { } } - public boolean setTypeIdAndData(int x, int y, int z, int typeId, int data) { + public boolean setRawTypeIdAndData(int x, int y, int z, int typeId, int data) { try { return editSession.setBlock(new Vector(x, y, z), new BaseBlock(typeId, data)); } catch (MaxChangedBlocksException ex) {