Package net.minecraft.client.entity

Examples of net.minecraft.client.entity.EntityPlayerSP


  {
    if(!(tickData[0] instanceof EntityPlayerSP))
    {
      return;
    }
    EntityPlayerSP player = (EntityPlayerSP)tickData[0];
    int frontX = MathHelper.floor_double(player.posX + player.getLookVec().xCoord);
    int frontY = MathHelper.floor_double(player.boundingBox.minY);
    int frontZ = MathHelper.floor_double(player.posZ + player.getLookVec().zCoord);
   
    int blockId = player.worldObj.getBlockId(frontX, frontY, frontZ);
    if(blockId == MineFactoryReloadedCore.vineScaffoldBlock.blockID)
    {
      if(player.movementInput.moveForward > 0)
      {
        player.motionY = 0.2D;
      }
      else if(player.isSneaking())
      {
        player.motionY = 0.0D;
      }
      else
      {
View Full Code Here


  private int lineObjectCount = -1;

  @ForgeSubscribe
  public void onRender(RenderWorldLastEvent event) {
    if (this.settings.minecraft != null) {
      EntityPlayerSP player = this.settings.minecraft.thePlayer;
      if (player != null) {
        this.settings.playerPosition.x = (float) (player.lastTickPosX + (player.posX - player.lastTickPosX) * event.partialTicks);
        this.settings.playerPosition.y = (float) (player.lastTickPosY + (player.posY - player.lastTickPosY) * event.partialTicks);
        this.settings.playerPosition.z = (float) (player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * event.partialTicks);

 
View Full Code Here

  }
 
  @Override
  protected void doProcess()
  {
    EntityPlayerSP player = Minecraft.getMinecraft().thePlayer;
   
    int x = (int) Math.floor(player.posX);
    int y = (int) Math.floor(player.posY);
    int z = (int) Math.floor(player.posZ);
   
View Full Code Here

 
  @Override
  protected void doProcess()
  {
    World w = Minecraft.getMinecraft().theWorld;
    EntityPlayerSP player = Minecraft.getMinecraft().thePlayer;
    WorldInfo info = w.getWorldInfo();
   
    setValue("time_modulo24k", (int) (info.getWorldTime() % 24000L));
    setValue("rain", info.isRaining());
    //setValue("thunder", info.isThundering());
View Full Code Here

    @SideOnly(Side.CLIENT)
    @SubscribeEvent
    public void onSoundPlayed(PlaySoundEvent17 event)
    {
      EntityPlayerSP player = FMLClientHandler.instance().getClient().thePlayer;

      if (player != null && player.worldObj != null && player.worldObj.provider instanceof IGalacticraftWorldProvider && event != null && event.sound != null)
      {
          //Only modify standard game sounds, not music
        if (event.sound.getAttenuationType() != ISound.AttenuationType.NONE)
          {
            PlayerGearData gearData = ClientProxyCore.playerItemData.get(player.getGameProfile().getName());

            if (gearData == null || gearData.getFrequencyModule() == -1)
            {
              float x = event.sound.getXPosF();
              float y = event.sound.getYPosF();
View Full Code Here

    @Override
    protected int shouldRenderPass(EntityLivingBase par1EntityLiving, int par2, float par3)
    {
        final Minecraft minecraft = FMLClientHandler.instance().getClient();

        final EntityPlayerSP player = minecraft.thePlayer;

        ItemStack helmetSlot = null;

        if (player != null && player.inventory.armorItemInSlot(3) != null)
        {
View Full Code Here

    @Override
    protected int shouldRenderPass(EntityLivingBase par1EntityLiving, int par2, float par3)
    {
        final Minecraft minecraft = FMLClientHandler.instance().getClient();

        final EntityPlayerSP player = minecraft.thePlayer;

        ItemStack helmetSlot = null;

        if (player != null && player.inventory.armorItemInSlot(3) != null)
        {
View Full Code Here

    @Override
    protected int shouldRenderPass(EntityLivingBase par1EntityLiving, int par2, float par3)
    {
        final Minecraft minecraft = FMLClientHandler.instance().getClient();

        final EntityPlayerSP player = minecraft.thePlayer;

        ItemStack helmetSlot = null;

        if (player != null && player.inventory.armorItemInSlot(3) != null)
        {
View Full Code Here

    @Override
    protected int shouldRenderPass(EntityLivingBase par1EntityLiving, int par2, float par3)
    {
        final Minecraft minecraft = FMLClientHandler.instance().getClient();

        final EntityPlayerSP player = minecraft.thePlayer;

        ItemStack helmetSlot = null;

        if (player != null && player.inventory.armorItemInSlot(3) != null)
        {
View Full Code Here

        GL11.glPushMatrix();
        //Skip mobs in mobspawners
        //Note: can also look for (entity.posY!=0.0D || entity.posX!=0.0D || entity.posZ!=0.0) which filters hand-held entities and the player in an inventory GUI
        if (ClientProxyCore.smallMoonActive && (offsetX != 0.0D || offsetY != 0.0D || offsetZ != 0.0D))
        {
            final EntityPlayerSP player = ClientProxyCore.mc.thePlayer;
            if (player.posY > ClientProxyCore.terrainHeight + 8F && player.ridingEntity != entity && player != entity)
            {
                double globalArc = ClientProxyCore.globalRadius / 57.2957795D;

                int pX = MathHelper.floor_double(player.posX / 16D) << 4;
View Full Code Here

TOP

Related Classes of net.minecraft.client.entity.EntityPlayerSP

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.