Examples of sendPlayerAbilities()


Examples of net.minecraft.entity.player.EntityPlayer.sendPlayerAbilities()

      }
      EntityPlayer player = (EntityPlayer)getParent();
      if(!player.capabilities.allowFlying)
      {
        player.capabilities.allowFlying = true;
        player.sendPlayerAbilities();
      }
      if(player.capabilities.isFlying && !player.capabilities.isCreativeMode)
      {
        double motionX = player.worldObj.isRemote ? player.motionX : player.posX - player.lastTickPosX;
        double motionZ = player.worldObj.isRemote ? player.motionZ : player.posZ - player.lastTickPosZ;
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.sendPlayerAbilities()

        player.capabilities.allowFlying = false;
        if(player.capabilities.isFlying)
        {
          player.capabilities.isFlying = false;
        }
        player.sendPlayerAbilities();
      }
    }
  }

  @Override
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayerMP.sendPlayerAbilities()

                else
                {
                    OutputHandler.chatError(sender, String.format("command.capabilities.capabilityUnknown", args[1]));
                    return;
                }
                player.sendPlayerAbilities();
            }
        }
    }

    @Override
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.