Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package xyz.bhopped.trend.events;
- import com.darkmagician6.eventapi.events.callables.*;
- import net.minecraft.client.entity.*;
- public class UpdateEvent extends EventCancellable
- {
- public boolean alwaysSend;
- public double y;
- public float yaw;
- public float pitch;
- public boolean onGround;
- public byte type;
- public EntityPlayerSP player;
- public boolean pre;
- public boolean ground;
- private boolean onground;
- public UpdateEvent(final double y, final float[] rot, final boolean onGround, final EntityPlayerSP player) {
- this.y = y;
- this.yaw = rot[0];
- this.pitch = rot[1];
- this.onGround = onGround;
- this.player = player;
- this.type = 0;
- this.onground = this.ground;
- this.ground = this.ground;
- }
- public boolean ground() {
- return this.ground;
- }
- public boolean shouldAlwaysSend() {
- return this.alwaysSend;
- }
- public void ground(final boolean newGround) {
- this.ground = newGround;
- }
- public double getY() {
- return this.y;
- }
- public void setY(final double y) {
- this.y = y;
- }
- public void setGround(final boolean ground) {
- this.onground = ground;
- }
- public UpdateEvent() {
- this.type = 2;
- }
- public boolean isPre() {
- return this.pre;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement