Class ItemMaceOfDistortion

java.lang.Object
net.minecraft.world.item.Item
net.minecraftforge.fluids.capability.ItemFluidContainer
org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainer
All Implemented Interfaces:
net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem, org.cyclops.cyclopscore.item.IInformationProvider

public class ItemMaceOfDistortion extends ItemMace
A powerful magical mace. The power of it can be changed by Shift + Right clicking. It can be used as primary weapon by just right clicking on entities, it will however use up some blood for that and become unusable when the tank is empty. It can also be used as secondary weapon to do a distortion effect in a certain area with the area increasing depending on how long the item is being charged, this area is smaller with a larger power level, but more powerful.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The amount of ticks that should go between each update of the area of effect particles.

    Fields inherited from class org.cyclops.evilcraft.core.item.ItemBloodContainer

    canPickUp

    Fields inherited from class org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainer

    component, fluid

    Fields inherited from class net.minecraftforge.fluids.capability.ItemFluidContainer

    capacity

    Fields inherited from class net.minecraft.world.item.Item

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, category, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from interface org.cyclops.cyclopscore.item.IInformationProvider

    BLOCK_PREFIX, INFO_PREFIX, INFO_PREFIX_STYLES, ITEM_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemMaceOfDistortion(net.minecraft.world.item.Item.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    animateOutOfEnergy(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
     
    protected void
    distortEntities(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, int itemUsedCount, int power)
     
    void
    distortEntity(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, net.minecraft.world.entity.Entity entity, double x, double y, double z, int itemUsedCount, int power)
    Distort an entity.
    com.google.common.collect.Multimap<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier>
    getAttributeModifiers(net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack itemStack)
     
    int
    getEnchantmentValue(net.minecraft.world.item.ItemStack itemStack)
     
    static void
    showEntityDistored(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, net.minecraft.world.entity.Entity entity, int power)
     
    protected void
    use(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, int itemUsedCount, int power)
    The usage action after charging the mace.

    Methods inherited from class org.cyclops.cyclopscore.item.DamageIndicatedItemFluidContainer

    canDrain, fillItemCategory, getBarColor, getBarWidth, getFluid, getInfo, initCapabilities, isBarVisible, provideInformation

    Methods inherited from class net.minecraft.world.item.Item

    allowedIn, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEquipSound, getFoodProperties, getId, getItemCategory, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, hasCraftingRemainingItem, initializeClient, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem

    canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, elytraFlightTick, getAllEnchantments, getArmorTexture, getBurnTime, getCraftingRemainingItem, getCreativeTabs, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Field Details

    • AOE_TICK_UPDATE

      public static final int AOE_TICK_UPDATE
      The amount of ticks that should go between each update of the area of effect particles.
      See Also:
  • Constructor Details

    • ItemMaceOfDistortion

      public ItemMaceOfDistortion(net.minecraft.world.item.Item.Properties properties)
  • Method Details

    • distortEntities

      protected void distortEntities(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, int itemUsedCount, int power)
    • distortEntity

      public void distortEntity(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.LivingEntity initiator, net.minecraft.world.entity.Entity entity, double x, double y, double z, int itemUsedCount, int power)
      Distort an entity.
      Parameters:
      world - The world.
      initiator - The player distoring the entity, can be null.
      entity - The distorted entity.
      x - Center X coordinate.
      y - Center Y coordinate.
      z - Center Z coordinate.
      itemUsedCount - The distortion usage power.
      power - The current power.
    • showEntityDistored

      public static void showEntityDistored(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity initiator, net.minecraft.world.entity.Entity entity, int power)
    • animateOutOfEnergy

      protected void animateOutOfEnergy(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
    • getEnchantmentValue

      public int getEnchantmentValue(net.minecraft.world.item.ItemStack itemStack)
    • getAttributeModifiers

      public com.google.common.collect.Multimap<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers(net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      getAttributeModifiers in interface net.minecraftforge.common.extensions.IForgeItem
      Overrides:
      getAttributeModifiers in class ItemMace
    • use

      protected void use(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, int itemUsedCount, int power)
      Description copied from class: ItemMace
      The usage action after charging the mace.
      Specified by:
      use in class ItemMace
      Parameters:
      world - The world
      entity - The using entity
      itemUsedCount - The charge count
      power - The configured power level