diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..f4ebca25 --- /dev/null +++ b/.gitignore @@ -0,0 +1,45 @@ +.DS_Store +/CHANGELOG +/LICENSE.txt +/bin/ +build.xml +/build/ +/cleanup.bat +/cleanup.sh +/conf/ +/decompile.bat +/decompile.sh +/dist/ +/docs/ +/eclipse/ +/getchangedsrc.bat +/getchangedsrc.sh +/jars/ +/logs/ +/mappingviewer/ +nbproject/ +/r +/recompile.bat +/recompile.sh +/reformat.bat +/reformat.sh +/reobfuscate.bat +/reobfuscate.sh +/reobfuscate_srg.bat +/reobfuscate_srg.sh +/runtime/ +/startclient.bat +/startclient.sh +/startserver.bat +/startserver.sh +/temp/ +/updateids.bat +/updateids.sh +/updatemcp.bat +/updatemcp.sh +/updatemd5.bat +/updatemd5.sh +/updatenames.bat +/updatenames.sh +/src/minecraft/net +/src/minecraft/mcp \ No newline at end of file diff --git a/Baritone.java b/src/cabaletta/baritone/Baritone.java similarity index 100% rename from Baritone.java rename to src/cabaletta/baritone/Baritone.java diff --git a/inventory/AnotherStealer.java b/src/cabaletta/baritone/inventory/AnotherStealer.java similarity index 100% rename from inventory/AnotherStealer.java rename to src/cabaletta/baritone/inventory/AnotherStealer.java diff --git a/inventory/CraftingTask.java b/src/cabaletta/baritone/inventory/CraftingTask.java similarity index 100% rename from inventory/CraftingTask.java rename to src/cabaletta/baritone/inventory/CraftingTask.java diff --git a/inventory/FoodManager.java b/src/cabaletta/baritone/inventory/FoodManager.java similarity index 100% rename from inventory/FoodManager.java rename to src/cabaletta/baritone/inventory/FoodManager.java diff --git a/inventory/InventoryManager.java b/src/cabaletta/baritone/inventory/InventoryManager.java similarity index 100% rename from inventory/InventoryManager.java rename to src/cabaletta/baritone/inventory/InventoryManager.java diff --git a/inventory/SmeltingTask.java b/src/cabaletta/baritone/inventory/SmeltingTask.java similarity index 100% rename from inventory/SmeltingTask.java rename to src/cabaletta/baritone/inventory/SmeltingTask.java diff --git a/mining/MickeyMine.java b/src/cabaletta/baritone/mining/MickeyMine.java similarity index 100% rename from mining/MickeyMine.java rename to src/cabaletta/baritone/mining/MickeyMine.java diff --git a/movement/MovementManager.java b/src/cabaletta/baritone/movement/MovementManager.java similarity index 100% rename from movement/MovementManager.java rename to src/cabaletta/baritone/movement/MovementManager.java diff --git a/pathfinding/Node.java b/src/cabaletta/baritone/pathfinding/Node.java similarity index 100% rename from pathfinding/Node.java rename to src/cabaletta/baritone/pathfinding/Node.java diff --git a/pathfinding/Path.java b/src/cabaletta/baritone/pathfinding/Path.java similarity index 100% rename from pathfinding/Path.java rename to src/cabaletta/baritone/pathfinding/Path.java diff --git a/pathfinding/PathFinder.java b/src/cabaletta/baritone/pathfinding/PathFinder.java similarity index 100% rename from pathfinding/PathFinder.java rename to src/cabaletta/baritone/pathfinding/PathFinder.java diff --git a/pathfinding/actions/Action.java b/src/cabaletta/baritone/pathfinding/actions/Action.java similarity index 100% rename from pathfinding/actions/Action.java rename to src/cabaletta/baritone/pathfinding/actions/Action.java diff --git a/pathfinding/actions/ActionBridge.java b/src/cabaletta/baritone/pathfinding/actions/ActionBridge.java similarity index 100% rename from pathfinding/actions/ActionBridge.java rename to src/cabaletta/baritone/pathfinding/actions/ActionBridge.java diff --git a/pathfinding/actions/ActionClimb.java b/src/cabaletta/baritone/pathfinding/actions/ActionClimb.java similarity index 100% rename from pathfinding/actions/ActionClimb.java rename to src/cabaletta/baritone/pathfinding/actions/ActionClimb.java diff --git a/pathfinding/actions/ActionDescend.java b/src/cabaletta/baritone/pathfinding/actions/ActionDescend.java similarity index 100% rename from pathfinding/actions/ActionDescend.java rename to src/cabaletta/baritone/pathfinding/actions/ActionDescend.java diff --git a/pathfinding/actions/ActionDescendThree.java b/src/cabaletta/baritone/pathfinding/actions/ActionDescendThree.java similarity index 100% rename from pathfinding/actions/ActionDescendThree.java rename to src/cabaletta/baritone/pathfinding/actions/ActionDescendThree.java diff --git a/pathfinding/actions/ActionDescendTwo.java b/src/cabaletta/baritone/pathfinding/actions/ActionDescendTwo.java similarity index 100% rename from pathfinding/actions/ActionDescendTwo.java rename to src/cabaletta/baritone/pathfinding/actions/ActionDescendTwo.java diff --git a/pathfinding/actions/ActionFall.java b/src/cabaletta/baritone/pathfinding/actions/ActionFall.java similarity index 100% rename from pathfinding/actions/ActionFall.java rename to src/cabaletta/baritone/pathfinding/actions/ActionFall.java diff --git a/pathfinding/actions/ActionPillar.java b/src/cabaletta/baritone/pathfinding/actions/ActionPillar.java similarity index 100% rename from pathfinding/actions/ActionPillar.java rename to src/cabaletta/baritone/pathfinding/actions/ActionPillar.java diff --git a/pathfinding/actions/ActionPlaceOrBreak.java b/src/cabaletta/baritone/pathfinding/actions/ActionPlaceOrBreak.java similarity index 100% rename from pathfinding/actions/ActionPlaceOrBreak.java rename to src/cabaletta/baritone/pathfinding/actions/ActionPlaceOrBreak.java diff --git a/pathfinding/actions/ActionWalkDiagonal.java b/src/cabaletta/baritone/pathfinding/actions/ActionWalkDiagonal.java similarity index 100% rename from pathfinding/actions/ActionWalkDiagonal.java rename to src/cabaletta/baritone/pathfinding/actions/ActionWalkDiagonal.java diff --git a/pathfinding/goals/Goal.java b/src/cabaletta/baritone/pathfinding/goals/Goal.java similarity index 100% rename from pathfinding/goals/Goal.java rename to src/cabaletta/baritone/pathfinding/goals/Goal.java diff --git a/pathfinding/goals/GoalBlock.java b/src/cabaletta/baritone/pathfinding/goals/GoalBlock.java similarity index 100% rename from pathfinding/goals/GoalBlock.java rename to src/cabaletta/baritone/pathfinding/goals/GoalBlock.java diff --git a/pathfinding/goals/GoalComposite.java b/src/cabaletta/baritone/pathfinding/goals/GoalComposite.java similarity index 100% rename from pathfinding/goals/GoalComposite.java rename to src/cabaletta/baritone/pathfinding/goals/GoalComposite.java diff --git a/pathfinding/goals/GoalGetToBlock.java b/src/cabaletta/baritone/pathfinding/goals/GoalGetToBlock.java similarity index 100% rename from pathfinding/goals/GoalGetToBlock.java rename to src/cabaletta/baritone/pathfinding/goals/GoalGetToBlock.java diff --git a/pathfinding/goals/GoalRunAway.java b/src/cabaletta/baritone/pathfinding/goals/GoalRunAway.java similarity index 100% rename from pathfinding/goals/GoalRunAway.java rename to src/cabaletta/baritone/pathfinding/goals/GoalRunAway.java diff --git a/pathfinding/goals/GoalTwoBlocks.java b/src/cabaletta/baritone/pathfinding/goals/GoalTwoBlocks.java similarity index 100% rename from pathfinding/goals/GoalTwoBlocks.java rename to src/cabaletta/baritone/pathfinding/goals/GoalTwoBlocks.java diff --git a/pathfinding/goals/GoalXZ.java b/src/cabaletta/baritone/pathfinding/goals/GoalXZ.java similarity index 100% rename from pathfinding/goals/GoalXZ.java rename to src/cabaletta/baritone/pathfinding/goals/GoalXZ.java diff --git a/pathfinding/goals/GoalYLevel.java b/src/cabaletta/baritone/pathfinding/goals/GoalYLevel.java similarity index 100% rename from pathfinding/goals/GoalYLevel.java rename to src/cabaletta/baritone/pathfinding/goals/GoalYLevel.java diff --git a/schematic/Schematic.java b/src/cabaletta/baritone/schematic/Schematic.java similarity index 100% rename from schematic/Schematic.java rename to src/cabaletta/baritone/schematic/Schematic.java diff --git a/schematic/SchematicBuilder.java b/src/cabaletta/baritone/schematic/SchematicBuilder.java similarity index 100% rename from schematic/SchematicBuilder.java rename to src/cabaletta/baritone/schematic/SchematicBuilder.java diff --git a/schematic/SchematicLoader.java b/src/cabaletta/baritone/schematic/SchematicLoader.java similarity index 100% rename from schematic/SchematicLoader.java rename to src/cabaletta/baritone/schematic/SchematicLoader.java diff --git a/strategy/EarlyGameStrategy.java b/src/cabaletta/baritone/strategy/EarlyGameStrategy.java similarity index 100% rename from strategy/EarlyGameStrategy.java rename to src/cabaletta/baritone/strategy/EarlyGameStrategy.java diff --git a/ui/AimBow.java b/src/cabaletta/baritone/ui/AimBow.java similarity index 100% rename from ui/AimBow.java rename to src/cabaletta/baritone/ui/AimBow.java diff --git a/ui/GuiEscMenu.java b/src/cabaletta/baritone/ui/GuiEscMenu.java similarity index 100% rename from ui/GuiEscMenu.java rename to src/cabaletta/baritone/ui/GuiEscMenu.java diff --git a/ui/LookManager.java b/src/cabaletta/baritone/ui/LookManager.java similarity index 100% rename from ui/LookManager.java rename to src/cabaletta/baritone/ui/LookManager.java diff --git a/ui/PathRenderer.java b/src/cabaletta/baritone/ui/PathRenderer.java similarity index 100% rename from ui/PathRenderer.java rename to src/cabaletta/baritone/ui/PathRenderer.java diff --git a/ui/Screenshot.java b/src/cabaletta/baritone/ui/Screenshot.java similarity index 100% rename from ui/Screenshot.java rename to src/cabaletta/baritone/ui/Screenshot.java diff --git a/util/Autorun.java b/src/cabaletta/baritone/util/Autorun.java similarity index 100% rename from util/Autorun.java rename to src/cabaletta/baritone/util/Autorun.java diff --git a/util/BlockPuncher.java b/src/cabaletta/baritone/util/BlockPuncher.java similarity index 100% rename from util/BlockPuncher.java rename to src/cabaletta/baritone/util/BlockPuncher.java diff --git a/util/ChatCommand.java b/src/cabaletta/baritone/util/ChatCommand.java similarity index 100% rename from util/ChatCommand.java rename to src/cabaletta/baritone/util/ChatCommand.java diff --git a/util/FakeArrow.java b/src/cabaletta/baritone/util/FakeArrow.java similarity index 100% rename from util/FakeArrow.java rename to src/cabaletta/baritone/util/FakeArrow.java diff --git a/util/MCEdit.java b/src/cabaletta/baritone/util/MCEdit.java similarity index 100% rename from util/MCEdit.java rename to src/cabaletta/baritone/util/MCEdit.java diff --git a/util/Manager.java b/src/cabaletta/baritone/util/Manager.java similarity index 100% rename from util/Manager.java rename to src/cabaletta/baritone/util/Manager.java diff --git a/util/ManagerTick.java b/src/cabaletta/baritone/util/ManagerTick.java similarity index 100% rename from util/ManagerTick.java rename to src/cabaletta/baritone/util/ManagerTick.java diff --git a/util/Memory.java b/src/cabaletta/baritone/util/Memory.java similarity index 100% rename from util/Memory.java rename to src/cabaletta/baritone/util/Memory.java diff --git a/util/Out.java b/src/cabaletta/baritone/util/Out.java similarity index 100% rename from util/Out.java rename to src/cabaletta/baritone/util/Out.java diff --git a/util/ToolSet.java b/src/cabaletta/baritone/util/ToolSet.java similarity index 100% rename from util/ToolSet.java rename to src/cabaletta/baritone/util/ToolSet.java diff --git a/src/minecraft/Start.java b/src/minecraft/Start.java new file mode 100644 index 00000000..46ccf4f2 --- /dev/null +++ b/src/minecraft/Start.java @@ -0,0 +1,20 @@ +import java.io.File; +import java.lang.reflect.Field; +import java.util.Arrays; + +import net.minecraft.client.main.Main; + +public class Start +{ + public static void main(String[] args) + { + Main.main(concat(new String[] {"--version", "mcp", "--accessToken", "0", "--assetsDir", "assets", "--assetIndex", "1.12", "--userProperties", "{}"}, args)); + } + + public static T[] concat(T[] first, T[] second) + { + T[] result = Arrays.copyOf(first, first.length + second.length); + System.arraycopy(second, 0, result, first.length, second.length); + return result; + } +}