Package com.bergerkiller.bukkit.common.controller

Examples of com.bergerkiller.bukkit.common.controller.DefaultEntityController


  @SuppressWarnings({"unchecked", "rawtypes"})
  public EntityController<CommonEntity<T>> getController() {
    if (isHooked()) {
      return (EntityController<CommonEntity<T>>) getHandle(NMSEntityHook.class).getController();
    }
    final EntityController controller = new DefaultEntityController();
    controller.bind(this);
    return controller;
  }
View Full Code Here


    // Prepare the hook
    this.prepareHook();

    // If null, resolve to the default type
    if (controller == null) {
      controller = new DefaultEntityController();
    }
    getController().bind(null);
    controller.bind(this);
  }
View Full Code Here

public class NMSEntityHookImpl implements NMSEntityHook {
  private EntityController<?> controller;

  public NMSEntityHookImpl(CommonEntity<?> entity) {
    this.controller = new DefaultEntityController();
    this.controller.bind(entity);
  }
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.common.controller.DefaultEntityController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.