Package vazkii.botania.common.item.equipment.bauble

Source Code of vazkii.botania.common.item.equipment.bauble.ItemKnockbackBelt

/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
*
* File Created @ [Apr 26, 2014, 7:08:53 PM (GMT)]
*/
package vazkii.botania.common.item.equipment.bauble;

import java.util.UUID;

import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.attributes.AttributeModifier;
import net.minecraft.item.ItemStack;
import vazkii.botania.common.lib.LibItemNames;
import baubles.api.BaubleType;

import com.google.common.collect.Multimap;

public class ItemKnockbackBelt extends ItemBaubleModifier {

  public ItemKnockbackBelt() {
    super(LibItemNames.KNOCKBACK_BELT);
  }

  @Override
  public BaubleType getBaubleType(ItemStack itemstack) {
    return BaubleType.BELT;
  }

  @Override
  void fillModifiers(Multimap<String, AttributeModifier> attributes) {
    attributes.put(SharedMonsterAttributes.knockbackResistance.getAttributeUnlocalizedName(), new AttributeModifier(new UUID(2745708 /** Random number **/, 43743), "Bauble modifier", 1, 0));
  }

}
TOP

Related Classes of vazkii.botania.common.item.equipment.bauble.ItemKnockbackBelt

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.