public abstract class Mace
extends org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainer
canPickUp, eConfigcomponent, fluidATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, bFull3D, canRepair, hasSubtypes, itemRand, maxStackSize, REGISTRY| Constructor and Description |
|---|
Mace(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.ItemConfig> eConfig,
int containerSize,
int hitUsage,
int maximumCharge,
int powerLevels,
float meleeDamage) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4) |
protected void |
animateOutOfEnergy(net.minecraft.world.World world,
net.minecraft.entity.EntityLivingBase entity) |
protected double |
getArea(int itemUsedCount)
The area of effect for the given in use count (counting up per tick).
|
com.google.common.collect.Multimap |
getAttributeModifiers(net.minecraft.inventory.EntityEquipmentSlot slot,
net.minecraft.item.ItemStack itemStack) |
int |
getItemEnchantability() |
net.minecraft.item.EnumAction |
getItemUseAction(net.minecraft.item.ItemStack itemStack) |
int |
getMaxItemUseDuration(net.minecraft.item.ItemStack itemStack) |
int |
getPower(net.minecraft.item.ItemStack itemStack)
Get the power level of the given ItemStack.
|
boolean |
hitEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase attacked,
net.minecraft.entity.EntityLivingBase attacker) |
boolean |
isFull3D() |
protected boolean |
isUsable(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player) |
boolean |
isValidArmor(net.minecraft.item.ItemStack stack,
net.minecraft.inventory.EntityEquipmentSlot armorType,
net.minecraft.entity.Entity entity) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand) |
boolean |
onLeftClickEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity) |
void |
onPlayerStoppedUsing(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.EntityLivingBase entity,
int itemInUseCount) |
void |
onUsingTick(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase player,
int duration) |
protected void |
showUsedItemTick(net.minecraft.world.World world,
net.minecraft.entity.EntityLivingBase player,
int power) |
protected void |
showUsingItemTick(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase entity,
int duration) |
protected abstract void |
use(net.minecraft.world.World world,
net.minecraft.entity.EntityLivingBase entity,
int itemUsedCount,
int power)
The usage action after charging the mace.
|
canConsume, canItemEditBlocks, consume, doesSneakBypassUse, drainFromOthers, getConfig, isPickupFluids, isPlaceFluids, onItemUseFirst, setPlaceFluidscanDrain, getDurabilityForDisplay, getFluid, getInfo, getRGBDurabilityForDisplay, getSubItems, initCapabilities, provideInformation, showDurabilityBaraddPropertyOverride, canApplyAtEnchantingTable, canDestroyBlockInCreative, canHarvestBlock, canHarvestBlock, createEntity, getAnimationParameters, getArmorModel, getArmorTexture, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDefaultInstance, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getHighlightTip, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getRarity, getShareTag, getSmeltingExperience, getStrVsBlock, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isEnchantable, isMap, isRepairable, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFinish, onUpdate, rayTrace, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setUnlocalizedName, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, shouldRotateAroundWhenRendering, updateItemStackNBTpublic Mace(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.ItemConfig> eConfig,
int containerSize,
int hitUsage,
int maximumCharge,
int powerLevels,
float meleeDamage)
public boolean isValidArmor(net.minecraft.item.ItemStack stack,
net.minecraft.inventory.EntityEquipmentSlot armorType,
net.minecraft.entity.Entity entity)
isValidArmor in class net.minecraft.item.Itempublic boolean isFull3D()
isFull3D in class net.minecraft.item.Itemprotected boolean isUsable(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player)
public boolean hitEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase attacked,
net.minecraft.entity.EntityLivingBase attacker)
hitEntity in class net.minecraft.item.Itempublic boolean onLeftClickEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity)
onLeftClickEntity in class net.minecraft.item.Itempublic net.minecraft.item.EnumAction getItemUseAction(net.minecraft.item.ItemStack itemStack)
getItemUseAction in class net.minecraft.item.Itempublic int getMaxItemUseDuration(net.minecraft.item.ItemStack itemStack)
getMaxItemUseDuration in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand)
onItemRightClick in class org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainerpublic void onUsingTick(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase player,
int duration)
onUsingTick in class net.minecraft.item.Itemprotected void showUsingItemTick(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.EntityLivingBase entity,
int duration)
protected void showUsedItemTick(net.minecraft.world.World world,
net.minecraft.entity.EntityLivingBase player,
int power)
protected double getArea(int itemUsedCount)
itemUsedCount - The amount of ticks the item was active.public void onPlayerStoppedUsing(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.EntityLivingBase entity,
int itemInUseCount)
onPlayerStoppedUsing in class net.minecraft.item.Itemprotected abstract void use(net.minecraft.world.World world,
net.minecraft.entity.EntityLivingBase entity,
int itemUsedCount,
int power)
world - The worldentity - The using entityitemUsedCount - The charge countpower - The configured power levelprotected void animateOutOfEnergy(net.minecraft.world.World world,
net.minecraft.entity.EntityLivingBase entity)
public int getItemEnchantability()
getItemEnchantability in class net.minecraft.item.Itempublic com.google.common.collect.Multimap getAttributeModifiers(net.minecraft.inventory.EntityEquipmentSlot slot,
net.minecraft.item.ItemStack itemStack)
getAttributeModifiers in class net.minecraft.item.Itempublic void addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
addInformation in class org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainerpublic int getPower(net.minecraft.item.ItemStack itemStack)
itemStack - The item to check.