public abstract class ItemMace extends ItemBloodContainer
canPickUpcomponent, fluid| Constructor and Description |
|---|
ItemMace(net.minecraft.item.Item.Properties builder,
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.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> list,
net.minecraft.client.util.ITooltipFlag flag) |
protected void |
animateOutOfEnergy(net.minecraft.world.World world,
net.minecraft.entity.LivingEntity 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<net.minecraft.entity.ai.attributes.Attribute,net.minecraft.entity.ai.attributes.AttributeModifier> |
getAttributeModifiers(net.minecraft.inventory.EquipmentSlotType slot,
net.minecraft.item.ItemStack itemStack) |
int |
getItemEnchantability() |
int |
getPower(net.minecraft.item.ItemStack itemStack)
Get the power level of the given ItemStack.
|
net.minecraft.item.UseAction |
getUseAction(net.minecraft.item.ItemStack stack) |
int |
getUseDuration(net.minecraft.item.ItemStack itemStack) |
boolean |
hitEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.LivingEntity attacked,
net.minecraft.entity.LivingEntity attacker) |
protected boolean |
isUsable(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.PlayerEntity player) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
boolean |
onLeftClickEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.entity.Entity entity) |
void |
onPlayerStoppedUsing(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.LivingEntity entity,
int itemInUseCount) |
void |
onUsingTick(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.LivingEntity player,
int duration) |
protected void |
showUsedItemTick(net.minecraft.world.World world,
net.minecraft.entity.LivingEntity player,
int power) |
protected void |
showUsingItemTick(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.LivingEntity entity,
int duration) |
protected abstract void |
use(net.minecraft.world.World world,
net.minecraft.entity.LivingEntity entity,
int itemUsedCount,
int power)
The usage action after charging the mace.
|
canConsume, consume, doesSneakBypassUse, drainFromOthers, isPickupFluids, isPlaceFluids, onItemUseFirst, setPlaceFluidscanDrain, fillItemGroup, getDurabilityForDisplay, getFluid, getInfo, getRGBDurabilityForDisplay, initCapabilities, provideInformation, showDurabilityBarasItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getRarity, getTags, getToolTypes, getTranslationKey, getTranslationKey, hasContainerItem, hasEffect, inventoryTick, isComplex, isCrossbow, isDamageable, isDamageable, isEnchantable, isFood, isImmuneToFire, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, elytraFlightTick, getArmorModel, getArmorTexture, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimationpublic ItemMace(net.minecraft.item.Item.Properties builder,
int containerSize,
int hitUsage,
int maximumCharge,
int powerLevels,
float meleeDamage)
protected boolean isUsable(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.PlayerEntity player)
public boolean hitEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.LivingEntity attacked,
net.minecraft.entity.LivingEntity attacker)
hitEntity in class net.minecraft.item.Itempublic boolean onLeftClickEntity(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.entity.Entity entity)
public net.minecraft.item.UseAction getUseAction(net.minecraft.item.ItemStack stack)
getUseAction in class net.minecraft.item.Itempublic int getUseDuration(net.minecraft.item.ItemStack itemStack)
getUseDuration in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
onItemRightClick in class ItemBloodContainerpublic void onUsingTick(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.LivingEntity player,
int duration)
protected void showUsingItemTick(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.LivingEntity entity,
int duration)
protected void showUsedItemTick(net.minecraft.world.World world,
net.minecraft.entity.LivingEntity 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.LivingEntity entity,
int itemInUseCount)
onPlayerStoppedUsing in class net.minecraft.item.Itemprotected abstract void use(net.minecraft.world.World world,
net.minecraft.entity.LivingEntity 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.LivingEntity entity)
public int getItemEnchantability()
getItemEnchantability in class net.minecraft.item.Itempublic com.google.common.collect.Multimap<net.minecraft.entity.ai.attributes.Attribute,net.minecraft.entity.ai.attributes.AttributeModifier> getAttributeModifiers(net.minecraft.inventory.EquipmentSlotType slot,
net.minecraft.item.ItemStack itemStack)
public void addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> list,
net.minecraft.client.util.ITooltipFlag flag)
addInformation in class org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainerpublic int getPower(net.minecraft.item.ItemStack itemStack)
itemStack - The item to check.