Class SpiritArc
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ProjectileWeaponItem
net.minecraft.world.item.BowItem
etithespirit.orimod.common.item.combat.SpiritArc
- All Implemented Interfaces:
ISpiritLightItem
,net.minecraft.world.item.Vanishable
,net.minecraft.world.level.ItemLike
,net.minecraftforge.common.extensions.IForgeItem
-
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.BowItem
DEFAULT_RANGE, MAX_DRAW_DURATION
Fields inherited from class net.minecraft.world.item.ProjectileWeaponItem
ARROW_ONLY, ARROW_OR_FIREWORK
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRepairAtLuxForge
(net.minecraft.world.item.ItemStack stack) Whether or not this item is able to be repaired in a Luxen Forge, which does not exist yet.net.minecraft.world.item.ItemStack
finishUsingItem
(net.minecraft.world.item.ItemStack pStack, net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.LivingEntity pLivingEntity) int
int
int
getUseDuration
(net.minecraft.world.item.ItemStack pStack) protected static boolean
isCharged
(net.minecraft.world.item.ItemStack onStack) void
onUseTick
(net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.LivingEntity pLivingEntity, net.minecraft.world.item.ItemStack pStack, int pRemainingUseDuration) void
releaseUsing
(net.minecraft.world.item.ItemStack pStack, net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.LivingEntity pLivingEntity, int pTimeLeft) protected static void
setCharged
(net.minecraft.world.item.ItemStack onStack, boolean isCharged) Methods inherited from class net.minecraft.world.item.BowItem
customArrow, getAllSupportedProjectiles, getPowerForTime, getUseAnimation, use
Methods inherited from class net.minecraft.world.item.ProjectileWeaponItem
getEnchantmentValue, getHeldProjectile, getSupportedHeldProjectiles
Methods inherited from class net.minecraft.world.item.Item
allowedIn, appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, fillItemCategory, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEquipSound, getFoodProperties, getId, getItemCategory, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, 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, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreativeTabs, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, 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
-
SpiritArc
public SpiritArc()
-
-
Method Details
-
setCharged
protected static void setCharged(net.minecraft.world.item.ItemStack onStack, boolean isCharged) -
isCharged
protected static boolean isCharged(net.minecraft.world.item.ItemStack onStack) -
releaseUsing
public void releaseUsing(net.minecraft.world.item.ItemStack pStack, net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.LivingEntity pLivingEntity, int pTimeLeft) - Overrides:
releaseUsing
in classnet.minecraft.world.item.BowItem
-
onUseTick
public void onUseTick(net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.LivingEntity pLivingEntity, net.minecraft.world.item.ItemStack pStack, int pRemainingUseDuration) - Overrides:
onUseTick
in classnet.minecraft.world.item.Item
-
finishUsingItem
public net.minecraft.world.item.ItemStack finishUsingItem(net.minecraft.world.item.ItemStack pStack, net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.LivingEntity pLivingEntity) - Overrides:
finishUsingItem
in classnet.minecraft.world.item.Item
-
getUseDuration
public int getUseDuration(net.minecraft.world.item.ItemStack pStack) - Overrides:
getUseDuration
in classnet.minecraft.world.item.BowItem
-
getUseDuration
public int getUseDuration() -
getDefaultProjectileRange
public int getDefaultProjectileRange()- Overrides:
getDefaultProjectileRange
in classnet.minecraft.world.item.BowItem
-
canRepairAtLuxForge
public boolean canRepairAtLuxForge(net.minecraft.world.item.ItemStack stack) Description copied from interface:ISpiritLightItem
Whether or not this item is able to be repaired in a Luxen Forge, which does not exist yet.- Specified by:
canRepairAtLuxForge
in interfaceISpiritLightItem
- Parameters:
stack
- The specific item stack being put into the machine.- Returns:
- True if the forge can repair the item, false if not.
-