Examples of GCPlayerStats


Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

    @Override
    public Vector3 getPlayerSpawnLocation(WorldServer world, EntityPlayerMP player)
    {
        if (player != null)
        {
            GCPlayerStats stats = GCPlayerStats.get(player);
            return new Vector3(stats.coordsTeleportedFromX, ConfigManagerCore.disableLander ? 250.0 : 900.0, stats.coordsTeleportedFromZ);
        }

        return null;
    }
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

         
          data1 =  (int) (eLiving.getHealth() * 100 / eLiving.getMaxHealth());
          if (eLiving instanceof EntityPlayerMP)
          {
            data3 = ((EntityPlayerMP) eLiving).getFoodStats().getFoodLevel() * 5;
            GCPlayerStats stats = GCPlayerStats.get((EntityPlayerMP) eLiving);
            data4 = stats.airRemaining * 4096 + stats.airRemaining2;
            UUID uuid = ((EntityPlayerMP) eLiving).getUniqueID();
            if (uuid != null) strUUID = uuid.toString();
          }
        }
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

    @Override
    public Vector3 getPlayerSpawnLocation(WorldServer world, EntityPlayerMP player)
    {
        if (player != null)
        {
            GCPlayerStats stats = GCPlayerStats.get(player);
            int x = MathHelper.floor_double(stats.coordsTeleportedFromX);
            int z = MathHelper.floor_double(stats.coordsTeleportedFromZ);

            int attemptCount = 0;
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

    }

    @Override
    public void onSpaceDimensionChanged(World newWorld, EntityPlayerMP player, boolean ridingAutoRocket)
    {
        GCPlayerStats stats = GCPlayerStats.get(player);
        if (!ridingAutoRocket && player != null && stats.teleportCooldown <= 0)
        {
            if (player.capabilities.isFlying)
            {
                player.capabilities.isFlying = false;
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

    public EntityLanderBase(EntityPlayerMP player, float yOffset)
    {
        this(player.worldObj, player.posX, player.posY, player.posZ, yOffset);

        GCPlayerStats stats = GCPlayerStats.get(player);
        this.containedItems = new ItemStack[stats.rocketStacks.length + 1];
        this.fuelTank.setFluid(new FluidStack(GalacticraftCore.fluidFuel, stats.fuelLevel));

        for (int i = 0; i < stats.rocketStacks.length; i++)
        {
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

    @Override
    public void handleServerSide(EntityPlayer player)
    {
        EntityPlayerMP playerBase = PlayerUtil.getPlayerBaseServerFromPlayer(player, false);
        GCPlayerStats stats = GCPlayerStats.get(playerBase);

        switch (this.type)
        {
        case S_UPDATE_SLIMELING_DATA:
            Entity entity = player.worldObj.getEntityByID((Integer) this.data.get(0));
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

                if (!playersRequestingMapData.isEmpty())
                {
                    ArrayList<EntityPlayerMP> copy = new ArrayList<EntityPlayerMP>(playersRequestingMapData);
                    for (EntityPlayerMP playerMP : copy)
                    {
                        GCPlayerStats stats = GCPlayerStats.get(playerMP);
                        ChunkCoordIntPair chunkCoordIntPair = new ChunkCoordIntPair((int)Math.floor(stats.coordsTeleportedFromX) >> 4, (int)Math.floor(stats.coordsTeleportedFromZ) >> 4);
                        BufferedImage image = new BufferedImage(400, 400, BufferedImage.TYPE_INT_RGB);

                        for (int x0 = -12; x0 <= 12; x0++)
                        {
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

        super.onLaunch();

        if (!this.worldObj.isRemote)
        {
          GCPlayerStats stats = null;
         
          if (this.riddenByEntity != null && this.riddenByEntity instanceof EntityPlayerMP)
            {
                stats = GCPlayerStats.get((EntityPlayerMP) this.riddenByEntity);
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

            if (this.riddenByEntity instanceof EntityPlayerMP)
            {
                EntityPlayerMP player = (EntityPlayerMP) this.riddenByEntity;

                this.onTeleport(player);
                GCPlayerStats stats = GCPlayerStats.get(player);
                WorldUtil.toCelestialSelection(player, stats, this.getRocketTier());

                if (!this.isDead)
                {
                    this.setDead();
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.entities.player.GCPlayerStats

        if (this.riddenByEntity != null && this.riddenByEntity instanceof EntityPlayerMP)
        {
            if (!this.worldObj.isRemote)
            {
                GalacticraftCore.packetPipeline.sendTo(new PacketSimple(EnumSimplePacket.C_RESET_THIRD_PERSON, new Object[] { }), (EntityPlayerMP) par1EntityPlayer);
                GCPlayerStats stats = GCPlayerStats.get((EntityPlayerMP) par1EntityPlayer);
                stats.chatCooldown = 0;
                par1EntityPlayer.mountEntity(null);
            }

            return true;
        }
        else if (par1EntityPlayer instanceof EntityPlayerMP)
        {
            if (!this.worldObj.isRemote)
            {
                GalacticraftCore.packetPipeline.sendTo(new PacketSimple(EnumSimplePacket.C_DISPLAY_ROCKET_CONTROLS, new Object[] { }), (EntityPlayerMP) par1EntityPlayer);
                GCPlayerStats stats = GCPlayerStats.get((EntityPlayerMP) par1EntityPlayer);
                stats.chatCooldown = 0;
                par1EntityPlayer.mountEntity(this);
            }

            return true;
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.