reformat, optimize imports
This commit is contained in:
parent
ae200a56b0
commit
382c7e7888
@ -29,11 +29,10 @@ public interface ICachedRegion extends IBlockTypeAccess {
|
|||||||
* however, the block coordinates should in on a scale from 0 to 511 (inclusive)
|
* however, the block coordinates should in on a scale from 0 to 511 (inclusive)
|
||||||
* because region sizes are 512x512 blocks.
|
* because region sizes are 512x512 blocks.
|
||||||
*
|
*
|
||||||
* @see ICachedWorld#isCached(int, int)
|
|
||||||
*
|
|
||||||
* @param blockX The block X coordinate
|
* @param blockX The block X coordinate
|
||||||
* @param blockZ The block Z coordinate
|
* @param blockZ The block Z coordinate
|
||||||
* @return Whether or not the specified XZ location is cached
|
* @return Whether or not the specified XZ location is cached
|
||||||
|
* @see ICachedWorld#isCached(int, int)
|
||||||
*/
|
*/
|
||||||
boolean isCached(int blockX, int blockZ);
|
boolean isCached(int blockX, int blockZ);
|
||||||
|
|
||||||
|
@ -50,19 +50,17 @@ public interface IWaypointCollection {
|
|||||||
/**
|
/**
|
||||||
* Gets all of the waypoints that have the specified tag
|
* Gets all of the waypoints that have the specified tag
|
||||||
*
|
*
|
||||||
* @see IWaypointCollection#getAllWaypoints()
|
|
||||||
*
|
|
||||||
* @param tag The tag
|
* @param tag The tag
|
||||||
* @return All of the waypoints with the specified tag
|
* @return All of the waypoints with the specified tag
|
||||||
|
* @see IWaypointCollection#getAllWaypoints()
|
||||||
*/
|
*/
|
||||||
Set<IWaypoint> getByTag(IWaypoint.Tag tag);
|
Set<IWaypoint> getByTag(IWaypoint.Tag tag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all of the waypoints in this collection, regardless of the tag.
|
* Gets all of the waypoints in this collection, regardless of the tag.
|
||||||
*
|
*
|
||||||
* @see IWaypointCollection#getByTag(IWaypoint.Tag)
|
|
||||||
*
|
|
||||||
* @return All of the waypoints in this collection
|
* @return All of the waypoints in this collection
|
||||||
|
* @see IWaypointCollection#getByTag(IWaypoint.Tag)
|
||||||
*/
|
*/
|
||||||
Set<IWaypoint> getAllWaypoints();
|
Set<IWaypoint> getAllWaypoints();
|
||||||
}
|
}
|
||||||
|
@ -125,10 +125,9 @@ public interface IPath {
|
|||||||
* Cuts off this path using the min length and cutoff factor settings, and returns the resulting path.
|
* Cuts off this path using the min length and cutoff factor settings, and returns the resulting path.
|
||||||
* Default implementation just returns this path, without the intended functionality.
|
* Default implementation just returns this path, without the intended functionality.
|
||||||
*
|
*
|
||||||
|
* @return The result of this cut-off operation
|
||||||
* @see Settings#pathCutoffMinimumLength
|
* @see Settings#pathCutoffMinimumLength
|
||||||
* @see Settings#pathCutoffFactor
|
* @see Settings#pathCutoffFactor
|
||||||
*
|
|
||||||
* @return The result of this cut-off operation
|
|
||||||
*/
|
*/
|
||||||
default IPath staticCutoff(Goal destination) {
|
default IPath staticCutoff(Goal destination) {
|
||||||
return this;
|
return this;
|
||||||
|
@ -32,7 +32,9 @@ import java.io.File;
|
|||||||
@Mixin(AnvilChunkLoader.class)
|
@Mixin(AnvilChunkLoader.class)
|
||||||
public class MixinAnvilChunkLoader implements IAnvilChunkLoader {
|
public class MixinAnvilChunkLoader implements IAnvilChunkLoader {
|
||||||
|
|
||||||
@Shadow @Final private File chunkSaveLocation;
|
@Shadow
|
||||||
|
@Final
|
||||||
|
private File chunkSaveLocation;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getChunkSaveLocation() {
|
public File getChunkSaveLocation() {
|
||||||
|
@ -31,7 +31,9 @@ import org.spongepowered.asm.mixin.Shadow;
|
|||||||
@Mixin(ChunkProviderServer.class)
|
@Mixin(ChunkProviderServer.class)
|
||||||
public class MixinChunkProviderServer implements IChunkProviderServer {
|
public class MixinChunkProviderServer implements IChunkProviderServer {
|
||||||
|
|
||||||
@Shadow @Final private IChunkLoader chunkLoader;
|
@Shadow
|
||||||
|
@Final
|
||||||
|
private IChunkLoader chunkLoader;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IChunkLoader getChunkLoader() {
|
public IChunkLoader getChunkLoader() {
|
||||||
|
@ -37,7 +37,8 @@ import static org.spongepowered.asm.lib.Opcodes.GETFIELD;
|
|||||||
@Mixin(Entity.class)
|
@Mixin(Entity.class)
|
||||||
public class MixinEntity {
|
public class MixinEntity {
|
||||||
|
|
||||||
@Shadow public float rotationYaw;
|
@Shadow
|
||||||
|
public float rotationYaw;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event called to override the movement direction when walking
|
* Event called to override the movement direction when walking
|
||||||
|
@ -33,7 +33,7 @@ public class MixinEntityRenderer {
|
|||||||
at = @At(
|
at = @At(
|
||||||
value = "INVOKE_STRING",
|
value = "INVOKE_STRING",
|
||||||
target = "Lnet/minecraft/profiler/Profiler;endStartSection(Ljava/lang/String;)V",
|
target = "Lnet/minecraft/profiler/Profiler;endStartSection(Ljava/lang/String;)V",
|
||||||
args = { "ldc=hand" }
|
args = {"ldc=hand"}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
private void renderWorldPass(int pass, float partialTicks, long finishTimeNano, CallbackInfo ci) {
|
private void renderWorldPass(int pass, float partialTicks, long finishTimeNano, CallbackInfo ci) {
|
||||||
|
@ -77,7 +77,8 @@ public class MixinNetworkManager {
|
|||||||
)
|
)
|
||||||
private void preProcessPacket(ChannelHandlerContext context, Packet<?> packet, CallbackInfo ci) {
|
private void preProcessPacket(ChannelHandlerContext context, Packet<?> packet, CallbackInfo ci) {
|
||||||
if (this.direction == EnumPacketDirection.CLIENTBOUND) {
|
if (this.direction == EnumPacketDirection.CLIENTBOUND) {
|
||||||
Baritone.INSTANCE.getGameEventHandler().onReceivePacket(new PacketEvent((NetworkManager) (Object) this, EventState.PRE, packet));}
|
Baritone.INSTANCE.getGameEventHandler().onReceivePacket(new PacketEvent((NetworkManager) (Object) this, EventState.PRE, packet));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(
|
@Inject(
|
||||||
|
Loading…
Reference in New Issue
Block a user