Skip to content

Commit

Permalink
condense min/max info in craftinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
oh-noey committed Jun 1, 2021
1 parent 9158f5a commit c5f7d39
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.countercraft.movecraft.commands;

import net.countercraft.movecraft.MovecraftLocation;
import net.countercraft.movecraft.craft.Craft;
import net.countercraft.movecraft.craft.CraftManager;
import net.countercraft.movecraft.util.MathUtils;
Expand All @@ -21,12 +22,8 @@ public class CraftInfoCommand implements TabExecutor {
registerMultiProvider(CraftInfoCommand::allowedBlockProvider);
registerProvider((craft -> "Craft size: " + craft.getHitBox().size()));
registerProvider((craft -> "Craft midpoint: " + craft.getHitBox().getMidPoint()));
registerProvider((craft -> "Craft min x: " + craft.getHitBox().getMinX()));
registerProvider((craft -> "Craft min y: " + craft.getHitBox().getMinY()));
registerProvider((craft -> "Craft min z: " + craft.getHitBox().getMinZ()));
registerProvider((craft -> "Craft max x: " + craft.getHitBox().getMaxX()));
registerProvider((craft -> "Craft max y: " + craft.getHitBox().getMaxY()));
registerProvider((craft -> "Craft max z: " + craft.getHitBox().getMaxZ()));
registerProvider((craft -> "Craft min bound: " + new MovecraftLocation(craft.getHitBox().getMinX(), craft.getHitBox().getMinY(), craft.getHitBox().getMinZ())));
registerProvider((craft -> "Craft max bound: " + new MovecraftLocation(craft.getHitBox().getMaxX(), craft.getHitBox().getMaxY(), craft.getHitBox().getMaxZ())));
registerProvider((craft -> "Craft world: " + craft.getWorld().getName()));
registerProvider((craft -> "Craft type: " + craft.getType().getCraftName()));
registerProvider((craft -> "Craft name: " + craft.getName()));
Expand Down

0 comments on commit c5f7d39

Please sign in to comment.