Class RuneAccuracy
java.lang.Object
net.minecraft.world.item.Item
com.idark.valoria.registries.item.types.curio.charm.RuneAccuracy
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement
,net.minecraft.world.level.ItemLike
,net.minecraftforge.common.extensions.IForgeItem
,top.theillusivec4.curios.api.type.capability.ICurioItem
public class RuneAccuracy
extends net.minecraft.world.item.Item
implements top.theillusivec4.curios.api.type.capability.ICurioItem
The main functional done in a CriticalHitEvent
- See Also:
-
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_SIZE
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
Fields inherited from interface top.theillusivec4.curios.api.type.capability.ICurioItem
defaultInstance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendHoverText
(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flags) boolean
canEquipFromUse
(top.theillusivec4.curios.api.SlotContext slot, net.minecraft.world.item.ItemStack stack) Determines if the ItemStack can be automatically equipped into the first available slot when used.boolean
isEnchantable
(net.minecraft.world.item.ItemStack pStack) 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, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, use, 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.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface top.theillusivec4.curios.api.type.capability.ICurioItem
canEquip, canEquip, canRightClickEquip, canSync, canSync, canUnequip, canUnequip, canWalkOnPowderedSnow, curioAnimate, curioBreak, curioBreak, curioTick, curioTick, getAttributeModifiers, getAttributeModifiers, getAttributesTooltip, getDropRule, getDropRule, getEquipSound, getFortuneBonus, getFortuneLevel, getLootingBonus, getLootingLevel, getSlotsTooltip, getTagsTooltip, hasCurioCapability, isEnderMask, makesPiglinsNeutral, onEquip, onEquip, onEquipFromUse, onUnequip, onUnequip, playRightClickEquipSound, readSyncData, readSyncData, showAttributesTooltip, writeSyncData, writeSyncData
Methods 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
-
RuneAccuracy
public RuneAccuracy(net.minecraft.world.item.Item.Properties properties)
-
-
Method Details
-
canEquipFromUse
public boolean canEquipFromUse(top.theillusivec4.curios.api.SlotContext slot, net.minecraft.world.item.ItemStack stack) Description copied from interface:top.theillusivec4.curios.api.type.capability.ICurioItem
Determines if the ItemStack can be automatically equipped into the first available slot when used.- Specified by:
canEquipFromUse
in interfacetop.theillusivec4.curios.api.type.capability.ICurioItem
- Parameters:
slot
- Context about the slot that the ItemStackstack
- The ItemStack in question- Returns:
- True to enable auto-equipping when the item is used, false to disable
-
isEnchantable
public boolean isEnchantable(net.minecraft.world.item.ItemStack pStack) - Overrides:
isEnchantable
in classnet.minecraft.world.item.Item
-
appendHoverText
public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flags) - Overrides:
appendHoverText
in classnet.minecraft.world.item.Item
-