// Path: src/main/java/clientapi/event/defaults/game/entity/local/UpdateEvent.java
// public final class UpdateEvent extends LocalPlayerEvent.Cancellable {
// 
//     private final EventState state;
// 
//     public UpdateEvent(EntityPlayerSP player, EventState state) {
//         super(player);
//         this.state = state;
//     }
// 
//     public EventState getState() {
//         return this.state;
//     }
// 
//     @Override
//     public String toString() {
//         return "UpdateEvent{" +
//                 "state=" + state +
//                 '}';
//     }
// }
// 
// Path: src/example/java/me/zero/example/mod/category/IMovement.java
// @Category(name = "Movement")
// public interface IMovement {}


import clientapi.event.defaults.game.entity.local.UpdateEvent;
import clientapi.module.Module;
import clientapi.module.annotation.Mod;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import me.zero.example.mod.category.IMovement;
import org.lwjgl.input.Keyboard;
/*
 * Copyright 2018 ImpactDevelopment
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package me.zero.example.mod.mods;


/**
 * @author Brady
 * @since 2/8/2017 12:00 PM
 */
@Mod(name = "Fly", description = "Allows you to fly", bind = Keyboard.KEY_F)
public final class Fly extends Module implements IMovement {

    @EventHandler
// Path: src/main/java/clientapi/event/defaults/game/entity/local/UpdateEvent.java
// public final class UpdateEvent extends LocalPlayerEvent.Cancellable {
// 
//     private final EventState state;
// 
//     public UpdateEvent(EntityPlayerSP player, EventState state) {
//         super(player);
//         this.state = state;
//     }
// 
//     public EventState getState() {
//         return this.state;
//     }
// 
//     @Override
//     public String toString() {
//         return "UpdateEvent{" +
//                 "state=" + state +
//                 '}';
//     }
// }
// 
// Path: src/example/java/me/zero/example/mod/category/IMovement.java
// @Category(name = "Movement")
// public interface IMovement {}


// Path: src/example/java/me/zero/example/mod/mods/Fly.java
import clientapi.event.defaults.game.entity.local.UpdateEvent;
import clientapi.module.Module;
import clientapi.module.annotation.Mod;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import me.zero.example.mod.category.IMovement;
import org.lwjgl.input.Keyboard;

/*
 * Copyright 2018 ImpactDevelopment
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package me.zero.example.mod.mods;


/**
 * @author Brady
 * @since 2/8/2017 12:00 PM
 */
@Mod(name = "Fly", description = "Allows you to fly", bind = Keyboard.KEY_F)
public final class Fly extends Module implements IMovement {

    @EventHandler
    private Listener<UpdateEvent> updateListener = new Listener<>(event ->