Package com.flansmod.common.guns

Examples of com.flansmod.common.guns.AttachmentType


    //If we have no animation variables, use defaults
    if(animations == null)
      animations = GunAnimations.defaults;
   
    //Get all the attachments that we may need to render
    AttachmentType scopeAttachment = type.getScope(item);
    AttachmentType barrelAttachment = type.getBarrel(item);
    AttachmentType stockAttachment = type.getStock(item);
    AttachmentType gripAttachment = type.getGrip(item);
   
    ItemStack[] bulletStacks = new ItemStack[type.numAmmoItemsInGun];
    boolean empty = true;
    for(int i = 0; i < type.numAmmoItemsInGun; i++)
    {
View Full Code Here


            NBTTagCompound tags = new NBTTagCompound();
            NBTTagCompound attachmentTags = new NBTTagCompound();
            int genericID = 0;
            for(int i = 0; i < itemNames.length - 1; i++)
            {
              AttachmentType attachment = AttachmentType.getAttachment(itemNames[i + 1]);
              if(attachment != null)
              {
                String tagName = null;
                switch(attachment.type)
                {
View Full Code Here

        EntityPlayer player = (EntityPlayer)obj;
        ItemStack currentHeldItem = player.getCurrentEquippedItem();
        if(currentHeldItem != null && currentHeldItem.getItem() instanceof ItemGun)
        {
          GunType type = ((ItemGun)currentHeldItem.getItem()).type;
          AttachmentType grip = type.getGrip(currentHeldItem);
          if(grip != null && grip.flashlight)
          {
            for(int i = 0; i < 2; i++)
            {
              MovingObjectPosition ray = player.rayTrace(grip.flashlightRange / 2F * (i + 1), 1F);
View Full Code Here

TOP

Related Classes of com.flansmod.common.guns.AttachmentType

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.