1
0
mirror of https://github.com/cabaletta/baritone synced 2024-12-27 09:22:20 +00:00

Collapse impl package for default behaviors

This commit is contained in:
Brady 2018-09-12 17:58:33 -05:00
parent 0a0209d2e1
commit ef396829f0
No known key found for this signature in database
GPG Key ID: 73A788379A197567
17 changed files with 42 additions and 25 deletions

View File

@ -22,7 +22,7 @@ import baritone.api.event.events.BlockInteractEvent;
import baritone.api.event.events.TickEvent;
import baritone.api.event.events.WorldEvent;
import baritone.api.event.events.type.EventState;
import baritone.behavior.impl.PathingBehavior;
import baritone.behavior.PathingBehavior;
import baritone.utils.ExampleBaritoneControl;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;

View File

@ -19,7 +19,7 @@ package baritone;
import baritone.api.event.listener.IGameEventListener;
import baritone.api.behavior.Behavior;
import baritone.behavior.impl.*;
import baritone.behavior.*;
import baritone.event.GameEventHandler;
import baritone.utils.InputOverrideHandler;
import net.minecraft.client.Minecraft;

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.behavior.impl;
package baritone.behavior;
import baritone.api.event.events.TickEvent;
import baritone.api.behavior.Behavior;
@ -28,14 +28,14 @@ import net.minecraft.util.math.BlockPos;
*
* @author leijurv
*/
public class FollowBehavior extends Behavior {
public final class FollowBehavior extends Behavior {
public static final FollowBehavior INSTANCE = new FollowBehavior();
private FollowBehavior() {
}
Entity following;
private Entity following;
@Override
public void onTick(TickEvent event) {

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.behavior.impl;
package baritone.behavior;
import baritone.api.behavior.Behavior;
import baritone.cache.Waypoint;

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.behavior.impl;
package baritone.behavior;
import baritone.Baritone;
import baritone.Settings;
@ -25,7 +25,7 @@ import baritone.api.behavior.Behavior;
import baritone.utils.Helper;
import baritone.utils.Rotation;
public class LookBehavior extends Behavior implements Helper {
public final class LookBehavior extends Behavior implements Helper {
public static final LookBehavior INSTANCE = new LookBehavior();

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.behavior.impl;
package baritone.behavior;
import baritone.utils.*;
import net.minecraft.block.BlockFire;

View File

@ -1,4 +1,21 @@
package baritone.behavior.impl;
/*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.behavior;
import baritone.api.event.events.PacketEvent;
import baritone.api.event.events.PlayerUpdateEvent;
@ -21,7 +38,7 @@ import java.util.*;
* @author Brady
* @since 8/6/2018 9:47 PM
*/
public class MemoryBehavior extends Behavior implements Helper {
public final class MemoryBehavior extends Behavior implements Helper {
public static MemoryBehavior INSTANCE = new MemoryBehavior();

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.behavior.impl;
package baritone.behavior;
import baritone.api.event.events.PathEvent;
import baritone.api.behavior.Behavior;
@ -43,7 +43,7 @@ import java.util.stream.Collectors;
*
* @author leijurv
*/
public class MineBehavior extends Behavior implements Helper {
public final class MineBehavior extends Behavior implements Helper {
public static final MineBehavior INSTANCE = new MineBehavior();

View File

@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package baritone.behavior.impl;
package baritone.behavior;
import baritone.Baritone;
import baritone.api.event.events.PathEvent;

View File

@ -17,7 +17,7 @@
package baritone.pathing.calc;
import baritone.behavior.impl.PathingBehavior;
import baritone.behavior.PathingBehavior;
import baritone.pathing.goals.Goal;
import baritone.pathing.path.IPath;
import baritone.utils.pathing.BetterBlockPos;

View File

@ -18,8 +18,8 @@
package baritone.pathing.movement;
import baritone.Baritone;
import baritone.behavior.impl.LookBehavior;
import baritone.behavior.impl.LookBehaviorUtils;
import baritone.behavior.LookBehavior;
import baritone.behavior.LookBehaviorUtils;
import baritone.pathing.movement.MovementState.MovementStatus;
import baritone.utils.*;
import baritone.utils.pathing.BetterBlockPos;

View File

@ -18,7 +18,7 @@
package baritone.pathing.movement;
import baritone.Baritone;
import baritone.behavior.impl.LookBehaviorUtils;
import baritone.behavior.LookBehaviorUtils;
import baritone.pathing.movement.MovementState.MovementTarget;
import baritone.pathing.movement.movements.MovementDescend;
import baritone.pathing.movement.movements.MovementFall;

View File

@ -18,7 +18,7 @@
package baritone.pathing.movement.movements;
import baritone.Baritone;
import baritone.behavior.impl.LookBehaviorUtils;
import baritone.behavior.LookBehaviorUtils;
import baritone.pathing.movement.CalculationContext;
import baritone.pathing.movement.Movement;
import baritone.pathing.movement.MovementHelper;

View File

@ -18,7 +18,7 @@
package baritone.pathing.movement.movements;
import baritone.Baritone;
import baritone.behavior.impl.LookBehaviorUtils;
import baritone.behavior.LookBehaviorUtils;
import baritone.pathing.movement.CalculationContext;
import baritone.pathing.movement.Movement;
import baritone.pathing.movement.MovementHelper;

View File

@ -18,7 +18,7 @@
package baritone.pathing.movement.movements;
import baritone.Baritone;
import baritone.behavior.impl.LookBehaviorUtils;
import baritone.behavior.LookBehaviorUtils;
import baritone.pathing.movement.CalculationContext;
import baritone.pathing.movement.Movement;
import baritone.pathing.movement.MovementHelper;

View File

@ -21,9 +21,9 @@ import baritone.Baritone;
import baritone.Settings;
import baritone.api.event.events.ChatEvent;
import baritone.api.behavior.Behavior;
import baritone.behavior.impl.FollowBehavior;
import baritone.behavior.impl.MineBehavior;
import baritone.behavior.impl.PathingBehavior;
import baritone.behavior.FollowBehavior;
import baritone.behavior.MineBehavior;
import baritone.behavior.PathingBehavior;
import baritone.cache.ChunkPacker;
import baritone.cache.Waypoint;
import baritone.cache.WorldProvider;

View File

@ -20,7 +20,7 @@ package baritone.utils;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.math.Vec3d;
import static baritone.behavior.impl.LookBehaviorUtils.calcVec3dFromRotation;
import static baritone.behavior.LookBehaviorUtils.calcVec3dFromRotation;
/**
* @author Brady