Class ItemVengeanceRing

java.lang.Object
net.minecraft.world.item.Item
org.cyclops.evilcraft.item.ItemVengeanceRing
All Implemented Interfaces:
net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem

public class ItemVengeanceRing extends net.minecraft.world.item.Item
Ring that can enable sight into the vengeance spirit realm.
  • Nested Class Summary

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

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

    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
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    appendHoverText(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flag)
     
    void
    inventoryTick(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int par4, boolean par5)
     
    boolean
    isFoil(net.minecraft.world.item.ItemStack itemStack)
     
    static void
    toggleVengeanceArea(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int area, boolean enableVengeance, boolean spawnRandom, boolean forceGlobal)
    Toggle vengeance around the given entity within the given area of effect.
    static void
    updateRingPowers(net.minecraft.world.entity.player.Player player)
    Give bonus abilities to the given player.
    net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
     

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

    allowedIn, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, fillItemCategory, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getEquipSound, getFoodProperties, getId, getItemCategory, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, 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, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getItemEnchantability, getItemStackLimit, getMaxDamage, getShareTag, getSweepHitBox, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Constructor Details

    • ItemVengeanceRing

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

    • use

      public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
      Overrides:
      use in class net.minecraft.world.item.Item
    • isFoil

      public boolean isFoil(net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      isFoil in class net.minecraft.world.item.Item
    • toggleVengeanceArea

      public static void toggleVengeanceArea(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int area, boolean enableVengeance, boolean spawnRandom, boolean forceGlobal)
      Toggle vengeance around the given entity within the given area of effect.
      Parameters:
      world - The world.
      entity - The entity to activate vengeance around.
      area - The area size.
      enableVengeance - If vengeance should be enabled (if false, will be disabled)
      spawnRandom - If a random spirit should be spawned when no spirits where in the area.
      forceGlobal - If global vengeance should be enabled for newly spawned spirits. This is of no use of spawnRandom is not true.
    • updateRingPowers

      public static void updateRingPowers(net.minecraft.world.entity.player.Player player)
      Give bonus abilities to the given player.
      Parameters:
      player - The player to receive the powers.
    • inventoryTick

      public void inventoryTick(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int par4, boolean par5)
      Overrides:
      inventoryTick in class net.minecraft.world.item.Item
    • appendHoverText

      public void appendHoverText(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flag)
      Overrides:
      appendHoverText in class net.minecraft.world.item.Item