Package com.bergerkiller.bukkit.common.controller

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


public class NMSEntityInventoryHookImpl implements NMSEntityInventoryHook {
  private EntityInventoryController<?> controller;

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


  @Override
  @SuppressWarnings({"rawtypes", "unchecked"})
  public void setInventoryController(EntityInventoryController controller) {
    this.prepareHook();
    if (controller == null) {
      controller = new DefaultEntityInventoryController();
    }
    getInventoryController().bind(null);
    controller.bind(this);
  }
View Full Code Here

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

TOP

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

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.