Examples of GCPlayerStats


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

        {
            try
            {
                if (playerBase != null)
                {
                    GCPlayerStats stats = GCPlayerStats.get(playerBase);

                    if (stats.spaceRaceInviteTeamID > 0)
                    {
                        SpaceRaceManager.sendSpaceRaceData(playerBase, SpaceRaceManager.getSpaceRaceFromID(stats.spaceRaceInviteTeamID));
                        GalacticraftCore.packetPipeline.sendTo(new PacketSimple(EnumSimplePacket.C_OPEN_JOIN_RACE_GUI, new Object[] { stats.spaceRaceInviteTeamID }), playerBase);
View Full Code Here

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

                    playerBase = PlayerUtil.getPlayerBaseServerFromPlayerUsername(icommandsender.getCommandSenderName(), true);
                }

                if (playerBase != null)
                {
                    GCPlayerStats stats = GCPlayerStats.get(playerBase);
                    stats.rocketStacks = new ItemStack[2];
                    stats.rocketType = IRocketType.EnumRocketType.DEFAULT.ordinal();
                    stats.rocketItem = GCItems.rocketTier1;
                    stats.fuelLevel = 1000;
View Full Code Here

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

    }

    @SubscribeEvent
    public void schematicUnlocked(Unlock event)
    {
        GCPlayerStats stats = GCPlayerStats.get(event.player);

        if (!stats.unlockedSchematics.contains(event.page))
        {
            stats.unlockedSchematics.add(event.page);
            Collections.sort(stats.unlockedSchematics);
View Full Code Here

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

    @SubscribeEvent
    public void onPlayerDeath(LivingDeathEvent event)
    {
        if (event.entityLiving instanceof EntityPlayerMP)
        {
            GCPlayerStats stats = GCPlayerStats.get((EntityPlayerMP) event.entityLiving);
            if (!event.entityLiving.worldObj.getGameRules().getGameRuleBooleanValue("keepInventory"))
            {
                for (int i = 0; i < stats.extendedInventory.getSizeInventory(); i++)
                {
                    ItemStack stack = stats.extendedInventory.getStackInSlot(i);
View Full Code Here

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

    {
        EntityPlayerMP playerBase = PlayerUtil.getPlayerBaseServerFromPlayer(player, false);

        if (playerBase != null)
        {
            GCPlayerStats stats = GCPlayerStats.get(playerBase);

            if (this.cargoItems == null || this.cargoItems.length == 0)
            {
                stats.rocketStacks = new ItemStack[2];
            }
View Full Code Here

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

                    }
                    else
                    {
                        if (par1EntityPlayer instanceof EntityPlayerMP)
                        {
                            GCPlayerStats stats = GCPlayerStats.get((EntityPlayerMP) par1EntityPlayer);
                            if (stats.chatCooldown == 0)
                            {
                                par1EntityPlayer.addChatMessage(new ChatComponentText(GCCoreUtil.translate("gui.slimeling.chat.wrongPlayer")));
                                stats.chatCooldown = 100;
                            }
View Full Code Here

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

{
    @Override
    public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
    {
        EntityPlayerMP playerBase = PlayerUtil.getPlayerBaseServerFromPlayer(player, false);
        GCPlayerStats stats = GCPlayerStats.get(playerBase);

        if (playerBase == null)
        {
            player.addChatMessage(new ChatComponentText("Galacticraft player instance null server-side. This is a bug."));
            return null;
View Full Code Here

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

    {
        EntityPlayerMP playerBase = PlayerUtil.getPlayerBaseServerFromPlayer(player, false);

        if (playerBase != null)
        {
            GCPlayerStats stats = GCPlayerStats.get(playerBase);

            if (this.cargoItems == null || this.cargoItems.length == 0)
            {
                stats.rocketStacks = new ItemStack[2];
            }
View Full Code Here

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

    public static boolean hasValidOxygenSetup(EntityPlayerMP player)
    {
        boolean missingComponent = false;

        GCPlayerStats stats = GCPlayerStats.get(player);

        if (stats.extendedInventory.getStackInSlot(0) == null || !OxygenUtil.isItemValidForPlayerTankInv(0, stats.extendedInventory.getStackInSlot(0)))
        {
            boolean handled = false;
View Full Code Here

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

    {
        final EntityPlayerMP playerBase = PlayerUtil.getPlayerBaseServerFromPlayer(player, false);

        if (playerBase != null)
        {
            GCPlayerStats stats = GCPlayerStats.get(player);

            if (this.cargoItems == null || this.cargoItems.length == 0)
            {
                stats.rocketStacks = new ItemStack[2];
            }
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.