Package org.cyclops.evilcraft.item
Class ItemVengeanceRing
java.lang.Object
net.minecraft.world.item.Item
org.cyclops.evilcraft.item.ItemVengeanceRing
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,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, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(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) voidinventoryTick(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int par4, boolean par5) booleanisFoil(net.minecraft.world.item.ItemStack itemStack) static voidtoggleVengeanceArea(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 voidupdateRingPowers(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
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, 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, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, 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:
usein classnet.minecraft.world.item.Item
-
isFoil
public boolean isFoil(net.minecraft.world.item.ItemStack itemStack) - Overrides:
isFoilin classnet.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:
inventoryTickin classnet.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:
appendHoverTextin classnet.minecraft.world.item.Item
-