From 25e8543a116078a46ae633fa8befc4755606d86b Mon Sep 17 00:00:00 2001 From: Nameless-123 <53367549+Nameless-123@users.noreply.github.com> Date: Sun, 19 Apr 2020 09:32:41 +0200 Subject: [PATCH] changing name to drawConey So later I can add drawConex and draw Conez methods --- src/main/java/carpet/commands/DrawCommand.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/carpet/commands/DrawCommand.java b/src/main/java/carpet/commands/DrawCommand.java index c6c9edcd..a17123d3 100644 --- a/src/main/java/carpet/commands/DrawCommand.java +++ b/src/main/java/carpet/commands/DrawCommand.java @@ -74,7 +74,7 @@ public class DrawCommand { .then(argument("height",IntegerArgumentType.integer(1)) .then(argument("pointing up?",BoolArgumentType.bool()) .then(argument("block", BlockStateArgumentType.blockState()) - .executes((c) -> drawCone(c.getSource(), + .executes((c) -> drawConey(c.getSource(), BlockPosArgumentType.getBlockPos(c, "center"), IntegerArgumentType.getInteger(c, "radius"), IntegerArgumentType.getInteger(c, "height"), @@ -83,7 +83,7 @@ public class DrawCommand { ) .then(literal("replace") .then(argument("filter", BlockPredicateArgumentType.blockPredicate()) - .executes((c) -> drawCone(c.getSource(), + .executes((c) -> drawConey(c.getSource(), BlockPosArgumentType.getBlockPos(c, "center"), IntegerArgumentType.getInteger(c, "radius"), IntegerArgumentType.getInteger(c, "height"), @@ -264,12 +264,12 @@ public class DrawCommand { return 1; } - private static int drawCone(ServerCommandSource source, BlockPos pos, int radius, int height, boolean pointup, BlockStateArgument block, + private static int drawConey(ServerCommandSource source, BlockPos pos, int radius, int height, boolean pointup, BlockStateArgument block, Predicate replacement) { - return (int) drawCone(source, pos, radius, height, block, replacement, pointup, false); + return (int) drawConey(source, pos, radius, height, block, replacement, pointup, false); } - private static int drawCone(ServerCommandSource source, BlockPos pos, int radius, int height,BlockStateArgument block, + private static int drawConey(ServerCommandSource source, BlockPos pos, int radius, int height,BlockStateArgument block, Predicate replacement, boolean pointup, boolean solid) { int affected = 0; int offset = 0;