Examples of EntityPlayerSP


Examples of deobf.EntityPlayerSP

    public static double getPlayerZ(EntityPlayerSP player) {
        return player.v;
    }

    public double getPlayerXGuess(float renderTick) {
        EntityPlayerSP plyr = getPlayer();
        return plyr.q + ((plyr.t - plyr.q) * renderTick);
    }
View Full Code Here

Examples of deobf.EntityPlayerSP

        EntityPlayerSP plyr = getPlayer();
        return plyr.q + ((plyr.t - plyr.q) * renderTick);
    }

    public double getPlayerYGuess(float renderTick) {
        EntityPlayerSP plyr = getPlayer();
        return plyr.r + ((plyr.u - plyr.r) * renderTick);
    }
View Full Code Here

Examples of deobf.EntityPlayerSP

        EntityPlayerSP plyr = getPlayer();
        return plyr.r + ((plyr.u - plyr.r) * renderTick);
    }

    public double getPlayerZGuess(float renderTick) {
        EntityPlayerSP plyr = getPlayer();
        return plyr.s + ((plyr.v - plyr.s) * renderTick);
    }
View Full Code Here

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

Examples of net.minecraft.client.entity.EntityPlayerSP

  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

Examples of net.minecraft.client.entity.EntityPlayerSP

  }
 
  @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

Examples of net.minecraft.client.entity.EntityPlayerSP

 
  @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

Examples of net.minecraft.client.entity.EntityPlayerSP

    @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

Examples of net.minecraft.client.entity.EntityPlayerSP

    @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

Examples of net.minecraft.client.entity.EntityPlayerSP

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