Examples of BotaniaPlayerController


Examples of vazkii.botania.client.core.handler.BotaniaPlayerController

    EntityPlayer player = mc.thePlayer;
    if(entity == player) {
      if(!(mc.playerController instanceof IExtendedPlayerController)) {
        GameType type = ReflectionHelper.getPrivateValue(PlayerControllerMP.class, mc.playerController, LibObfuscation.CURRENT_GAME_TYPE);
        NetHandlerPlayClient net = ReflectionHelper.getPrivateValue(PlayerControllerMP.class, mc.playerController, LibObfuscation.NET_CLIENT_HANDLER);
        BotaniaPlayerController controller = new BotaniaPlayerController(mc, net);
        controller.setGameType(type);
        mc.playerController = controller;
      }

      ((IExtendedPlayerController) mc.playerController).setReachDistanceExtension(Math.max(0, ((IExtendedPlayerController) mc.playerController).getReachDistanceExtension() + reach));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.