baubles.api.BaubleType Java Examples
The following examples show how to use
baubles.api.BaubleType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ItemArtifact.java From Artifacts with MIT License | 6 votes |
@Override public BaubleType getBaubleType(ItemStack itemStack) { if(itemStack.stackTagCompound != null) { String type = itemStack.stackTagCompound.getString("iconName"); if(type.equals("Ring")) return BaubleType.RING; if(type.equals("Amulet")) return BaubleType.AMULET; if(type.equals("Belt")) return BaubleType.BELT; } return null; }
Example #2
Source File: BaublesSupport.java From Wizardry with GNU Lesser General Public License v3.0 | 5 votes |
@Override @Optional.Method(modid = "baubles") public Iterable<ItemStack> getBaublesFallbackArmor(EntityLivingBase entity) { if (!(entity instanceof EntityPlayer)) return entity.getArmorInventoryList(); if (BaublesApi.getBaublesHandler((EntityPlayer) entity) == null) return entity.getArmorInventoryList(); ImmutableList.Builder<ItemStack> stacks = ImmutableList.builder(); IBaublesItemHandler inv = BaublesApi.getBaublesHandler((EntityPlayer) entity); for (BaubleType type : BaubleType.values()) for (int slot : type.getValidSlots()) { stacks.add(inv.getStackInSlot(slot)); } return stacks.build(); }
Example #3
Source File: BaublesSupport.java From Wizardry with GNU Lesser General Public License v3.0 | 5 votes |
@Override @Optional.Method(modid = "baubles") public List<ItemStack> getBaublesOnly(EntityLivingBase entity) { if (!(entity instanceof EntityPlayer)) return new ArrayList<>(); if (BaublesApi.getBaublesHandler((EntityPlayer) entity) == null) return new ArrayList<>(); ImmutableList.Builder<ItemStack> stacks = ImmutableList.builder(); IBaublesItemHandler inv = BaublesApi.getBaublesHandler((EntityPlayer) entity); for (BaubleType type : BaubleType.values()) for (int slot : type.getValidSlots()) { stacks.add(inv.getStackInSlot(slot)); } return stacks.build(); }
Example #4
Source File: ItemIC2Baubles.java From Electro-Magic-Tools with GNU General Public License v3.0 | 5 votes |
@Override public BaubleType getBaubleType(ItemStack stack) { if (stack.getItemDamage() <= 1) { return BaubleType.RING; } else { return null; } }
Example #5
Source File: ItemBaseBaubles.java From Electro-Magic-Tools with GNU General Public License v3.0 | 5 votes |
@Override public BaubleType getBaubleType(ItemStack stack) { if (stack.getItemDamage() <= 0) { return BaubleType.RING; } else { return null; } }
Example #6
Source File: ItemCreativeHaloBauble.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
@Nonnull @Optional.Method(modid = "baubles") @Override public BaubleType getBaubleType(@Nonnull ItemStack itemStack) { return BaubleType.HEAD; }
Example #7
Source File: ItemRingNutrition.java From ForbiddenMagic with Do What The F*ck You Want To Public License | 4 votes |
public BaubleType getBaubleType(ItemStack itemstack){ return BaubleType.RING; }
Example #8
Source File: ItemAgriBauble.java From AgriCraft with MIT License | 4 votes |
@Override public BaubleType getBaubleType(ItemStack itemstack) { return BaubleType.CHARM; }
Example #9
Source File: ItemFamiliar_Old.java From Gadomancy with GNU Lesser General Public License v3.0 | 4 votes |
@Override public BaubleType getBaubleType(ItemStack paramItemStack) { return BaubleType.AMULET; }
Example #10
Source File: ItemEtherealFamiliar.java From Gadomancy with GNU Lesser General Public License v3.0 | 4 votes |
@Override public BaubleType getBaubleType(ItemStack itemStack) { return BaubleType.AMULET; }
Example #11
Source File: OvenGlove.java From NewHorizonsCoreMod with GNU General Public License v3.0 | 4 votes |
@Override public BaubleType getBaubleType( ItemStack arg0 ) { return BaubleType.RING; }
Example #12
Source File: WitherProtectionRing.java From NewHorizonsCoreMod with GNU General Public License v3.0 | 4 votes |
@Override public BaubleType getBaubleType(ItemStack arg0) { return BaubleType.RING; }
Example #13
Source File: GTItemBaublesEnergyPack.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
@Override @Optional.Method(modid = "baubles") public BaubleType getBaubleType(ItemStack itemStack) { return BaubleType.BODY; }
Example #14
Source File: ItemRealHaloBauble.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
@Nonnull @Optional.Method(modid = "baubles") @Override public BaubleType getBaubleType(@Nonnull ItemStack itemStack) { return BaubleType.HEAD; }
Example #15
Source File: ItemFakeHaloBauble.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
@Nonnull @Optional.Method(modid = "baubles") @Override public BaubleType getBaubleType(@Nonnull ItemStack itemStack) { return BaubleType.HEAD; }
Example #16
Source File: ItemCapeBauble.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
@Nonnull @Override @Optional.Method(modid = "baubles") public BaubleType getBaubleType(ItemStack itemStack) { return BaubleType.BODY; }
Example #17
Source File: ItemPearlBelt.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
@Nonnull @Override @Optional.Method(modid = "baubles") public BaubleType getBaubleType(@NotNull ItemStack stack) { return BaubleType.BELT; }
Example #18
Source File: GTItemBaublesLithiumBattery.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
@Override @Optional.Method(modid = "baubles") public BaubleType getBaubleType(ItemStack itemStack) { return BaubleType.BELT; }
Example #19
Source File: GTItemBaublesEnergyOrb.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
@Override @Optional.Method(modid = "baubles") public BaubleType getBaubleType(ItemStack itemStack) { return BaubleType.BELT; }