added files.

This commit is contained in:
nitrogenoliquido committed 2026-11-26 17:50:49 -05:00
commit 8aa2a15c64
124 files changed
+14297

No files matched your search

@@ -0,0 +1,73 @@
package me.konsolas.aac.internal.packetwrapper;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.events.PacketContainer;
public class WrapperPlayServerEntityMoveLook extends AbstractPacket {
public static final PacketType TYPE = PacketType.Play.Server.ENTITY_MOVE_LOOK;
public WrapperPlayServerEntityMoveLook() {
super(new PacketContainer(TYPE), TYPE);
this.handle.getModifier().writeDefaults();
}
public WrapperPlayServerEntityMoveLook(PacketContainer packet) {
super(packet, TYPE);
}
public int getEntityID() {
return this.handle.getIntegers().read(0);
}
public void setEntityID(int value) {
this.handle.getIntegers().write(0, value);
}
public double getDx() {
return this.handle.getBytes().read(0) / 32.0;
}
public void setDx(double value) {
this.handle.getBytes().write(0, (byte) (value * 32.0));
}
public double getDy() {
return this.handle.getBytes().read(0) / 32.0;
}
public void setDy(double value) {
this.handle.getBytes().write(0, (byte) (value * 32.0));
}
public double getDz() {
return this.handle.getBytes().read(0) / 32.0;
}
public void setDz(double value) {
this.handle.getBytes().write(0, (byte) (value * 32.0));
}
public float getYaw() {
return this.handle.getBytes().read(0) * 360.0F / 256.0F;
}
public void setYaw(float value) {
this.handle.getBytes().write(0, (byte) (value * 256.0F / 360.0F));
}
public float getPitch() {
return this.handle.getBytes().read(1) * 360.0F / 256.0F;
}
public void setPitch(float value) {
this.handle.getBytes().write(1, (byte) (value * 256.0F / 360.0F));
}
public boolean getOnGround() {
return this.handle.getSpecificModifier(boolean.class).read(0);
}
public void setOnGround(boolean value) {
this.handle.getSpecificModifier(boolean.class).write(0, value);
}
}