NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

package me.aristhena.crest.module.modules.movement;
import me.aristhena.crest.module.*;
import me.aristhena.utils.*;
import net.minecraft.network.play.client.*;
import net.minecraft.network.*;
import me.aristhena.event.*;
import me.aristhena.event.events.*;
import net.minecraft.util.*;
import net.minecraft.world.*;
import net.minecraft.block.*;
import me.aristhena.utils.Timer;
@Module.Mod(displayName = "NCPhase")
public class NCPhase extends Module
{
private Timer timer;

public NCPhase() {
this.timer = new Timer();
}

public void enable() {
this.timer.reset();
super.enable();
}

@EventTarget
public void onPost(final UpdateEvent event) {
if (event.getState().equals((Object)Event.State.POST) && ClientUtils.player().isCollidedHorizontally && !ClientUtils.player().isOnLadder()) {
double xOff = 0.0;
double zOff = 0.0;
final double multiplier = 0.3;
final double mx = Math.cos(Math.toRadians(ClientUtils.yaw() + 90.0f));
final double mz = Math.sin(Math.toRadians(ClientUtils.yaw() + 90.0f));
xOff = ClientUtils.movementInput().moveForward * multiplier * mx + ClientUtils.movementInput().moveStrafe * multiplier * mz;
zOff = ClientUtils.movementInput().moveForward * multiplier * mz - ClientUtils.movementInput().moveStrafe * multiplier * mx;
ClientUtils.packet((Packet)new C03PacketPlayer.C04PacketPlayerPosition(ClientUtils.x() + xOff, ClientUtils.y(), ClientUtils.z() + zOff, false));
for (int i = 1; i < 10; ++i) {
ClientUtils.packet((Packet)new C03PacketPlayer.C04PacketPlayerPosition(ClientUtils.x(), 8.988465674311579E307, ClientUtils.z(), false));
}
ClientUtils.player().setPosition(ClientUtils.x() + xOff, ClientUtils.y(), ClientUtils.z() + zOff);
}
}

@EventTarget
public void onBB(final BoundingBoxEvent event) {
if (this.isInsideBlock() && event.getBoundingBox() != null && event.getBoundingBox().maxY > ClientUtils.player().boundingBox.minY) {
event.setBoundingBox((AxisAlignedBB)null);
}
}

@EventTarget
public void onPush(final PushOutOfBlocksEvent event) {
event.setCancelled(true);
}

@EventTarget
private void onInsideBlockRender(final InsideBlockRenderEvent event) {
event.setCancelled(true);
}

private boolean isInsideBlock() {
for (int x = MathHelper.floor_double(ClientUtils.player().boundingBox.minX); x < MathHelper.floor_double(ClientUtils.player().boundingBox.maxX) + 1; ++x) {
for (int y = MathHelper.floor_double(ClientUtils.player().boundingBox.minY); y < MathHelper.floor_double(ClientUtils.player().boundingBox.maxY) + 1; ++y) {
for (int z = MathHelper.floor_double(ClientUtils.player().boundingBox.minZ); z < MathHelper.floor_double(ClientUtils.player().boundingBox.maxZ) + 1; ++z) {
final Block block = ClientUtils.world().getBlockState(new BlockPos(x, y, z)).getBlock();
if (block != null && !(block instanceof BlockAir)) {
AxisAlignedBB boundingBox = block.getCollisionBoundingBox((World)ClientUtils.world(), new BlockPos(x, y, z), ClientUtils.world().getBlockState(new BlockPos(x, y, z)));
if (block instanceof BlockHopper) {
boundingBox = new AxisAlignedBB((double)x, (double)y, (double)z, (double)(x + 1), (double)(y + 1), (double)(z + 1));
}
if (boundingBox != null && ClientUtils.player().boundingBox.intersectsWith(boundingBox)) {
return true;
}
}
}
}
}
return false;
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.