Package com.bergerkiller.bukkit.common.controller

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


   */
  public static EntityNetworkController<?> createNetworkController(CommonEntity<?> entity) {
    if (TrainCarts.useNetworkSynchronizer) {
      return new MinecartMemberNetwork();
    } else {
      return new DefaultEntityNetworkController();
    }
  }
View Full Code Here


    item.last.set(this.item.loc.set(location));
    item.vel.y.add(0.1);
    item.setItemStack(itemstack);
    itemStack = itemstack;
    refresh();
    item.setNetworkController(new DefaultEntityNetworkController());
  }
View Full Code Here

    if (entityTrackerEntry == null) {
      return null;
    } else if (entityTrackerEntry instanceof NMSEntityTrackerEntry) {
      result = ((NMSEntityTrackerEntry) entityTrackerEntry).getController();
    } else if (EntityTrackerEntry.class.equals(entityTrackerEntry.getClass())) {
      result = new DefaultEntityNetworkController();
      result.bind(this, entityTrackerEntry);
    } else {
      result = new ExternalEntityNetworkController();
      result.bind(this, entityTrackerEntry);
    }
View Full Code Here

      }
    }
    // Unhook network controller
    EntityNetworkController<?> controller = commonEntity.getNetworkController();
    if (controller != null && !(controller instanceof DefaultEntityNetworkController)) {
      commonEntity.setNetworkController(new DefaultEntityNetworkController());
    }
  }
View Full Code Here

TOP

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

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.