public abstract class Mace
extends org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainer
canPickUp, eConfigcomponent, fluid| 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.player.EntityPlayer player) |
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.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) |
net.minecraft.item.ItemStack |
onItemRightClick(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player) |
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.player.EntityPlayer player,
int itemInUseCount) |
void |
onUsingTick(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
int duration) |
protected void |
showUsedItemTick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
int power) |
protected void |
showUsingItemTick(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
int duration) |
protected abstract void |
use(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
int itemUsedCount,
int power)
The usage action after charging the mace.
|
canConsume, canItemEditBlocks, consume, doesSneakBypassUse, drainFromOthers, getConfig, isPickupFluids, isPlaceFluids, onItemUseFirst, setPlaceFluidscanDrain, drain, fill, getDurabilityForDisplay, getFluid, getInfo, getSubItems, provideInformation, showDurabilityBargetCapacity, getFluid, setCapacitycanHarvestBlock, canHarvestBlock, createEntity, getArmorModel, getArmorTexture, getByNameOrId, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getHighlightTip, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMetadata, getMetadata, getModel, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRegistryName, getShareTag, getSmeltingExperience, getStrVsBlock, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, initCapabilities, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFinish, onUpdate, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setRegistryName, setRegistryName, setRegistryName, setUnlocalizedName, 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 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.item.ItemStack onItemRightClick(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
onItemRightClick in class org.cyclops.cyclopscore.config.configurable.ConfigurableDamageIndicatedItemFluidContainerpublic void onUsingTick(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer 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.player.EntityPlayer player,
int duration)
protected void showUsedItemTick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer 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.player.EntityPlayer player,
int itemInUseCount)
onPlayerStoppedUsing in class net.minecraft.item.Itemprotected abstract void use(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
int itemUsedCount,
int power)
world - The worldplayer - The using playeritemUsedCount - The charge countpower - The configured power levelprotected void animateOutOfEnergy(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
public int getItemEnchantability()
getItemEnchantability in class net.minecraft.item.Itempublic com.google.common.collect.Multimap getAttributeModifiers(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.