mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-07-01 02:08:27 +00:00
New Fly D and lowering file size, new logs system
This commit is contained in:
@@ -4,7 +4,6 @@ import dev.brighten.ac.packet.ProtocolVersion;
|
||||
import dev.brighten.ac.packet.handler.HandlerAbstract;
|
||||
import dev.brighten.ac.packet.wrapper.objects.EnumParticle;
|
||||
import dev.brighten.ac.packet.wrapper.out.WPacketPlayOutWorldParticles;
|
||||
import dev.brighten.ac.utils.handlers.PlayerSizeHandler;
|
||||
import dev.brighten.ac.utils.world.BlockData;
|
||||
import dev.brighten.ac.utils.world.CollisionBox;
|
||||
import dev.brighten.ac.utils.world.types.RayCollision;
|
||||
@@ -36,10 +35,6 @@ public class Helper {
|
||||
return vector;
|
||||
}
|
||||
|
||||
public static SimpleCollisionBox getMovementHitbox(Player player, double x, double y, double z) {
|
||||
return PlayerSizeHandler.instance.bounds(player, x, y, z);
|
||||
}
|
||||
|
||||
public static void drawRay(RayCollision collision, double distance, EnumParticle particle, Collection<? extends Player> players) {
|
||||
for (double i = 0; i < 3; i += 0.2) {
|
||||
float fx = (float) (collision.originX + (collision.directionX * i));
|
||||
@@ -148,16 +143,6 @@ public class Helper {
|
||||
|
||||
}
|
||||
|
||||
public static SimpleCollisionBox getMovementHitbox(Player player) {
|
||||
return PlayerSizeHandler.instance.bounds(player);
|
||||
}
|
||||
|
||||
public static SimpleCollisionBox getCombatHitbox(Player player, ProtocolVersion version) {
|
||||
return version.isBelow(ProtocolVersion.V1_9)
|
||||
? PlayerSizeHandler.instance.bounds(player).expand(.1, 0, .1)
|
||||
: PlayerSizeHandler.instance.bounds(player);
|
||||
}
|
||||
|
||||
public static Block getBlockAt(World world, int x, int y, int z) {
|
||||
return world.isChunkLoaded(x >> 4, z >> 4)
|
||||
? world.getChunkAt(x >> 4, z >> 4).getBlock(x & 15, y, z & 15)
|
||||
|
||||
Reference in New Issue
Block a user