Class ItemPharaoScepter

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ProjectileWeaponItem
net.minecraft.world.item.BowItem
com.minecolonies.core.items.ItemPharaoScepter
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.item.Vanishable, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem

public class ItemPharaoScepter extends net.minecraft.world.item.BowItem
Class handling the Pharao Scepter item.
  • 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, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemPharaoScepter(net.minecraft.world.item.Item.Properties properties)
    Constructor method for the Chief Sword Item
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.world.entity.projectile.AbstractArrow
    customArrow(@NotNull net.minecraft.world.entity.projectile.AbstractArrow arrow)
     
    @NotNull Predicate<net.minecraft.world.item.ItemStack>
     
    void
    releaseUsing(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.LivingEntity entityLiving, int timeLeft)
     
    @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(@NotNull net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player playerIn, @NotNull net.minecraft.world.InteractionHand handIn)
     

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

    getDefaultProjectileRange, getPowerForTime, getUseAnimation, getUseDuration

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

    getEnchantmentValue, getHeldProjectile, getSupportedHeldProjectiles

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

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getFoodProperties, getId, 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, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, requiredFeatures, 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.minecraft.world.flag.FeatureElement

    isEnabled

    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, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Constructor Details

    • ItemPharaoScepter

      public ItemPharaoScepter(net.minecraft.world.item.Item.Properties properties)
      Constructor method for the Chief Sword Item
      Parameters:
      properties - the properties.
  • Method Details

    • use

      @NotNull public @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(@NotNull @NotNull net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player playerIn, @NotNull @NotNull net.minecraft.world.InteractionHand handIn)
      Overrides:
      use in class net.minecraft.world.item.BowItem
    • releaseUsing

      public void releaseUsing(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.LivingEntity entityLiving, int timeLeft)
      Overrides:
      releaseUsing in class net.minecraft.world.item.BowItem
    • getAllSupportedProjectiles

      @NotNull public @NotNull Predicate<net.minecraft.world.item.ItemStack> getAllSupportedProjectiles()
      Overrides:
      getAllSupportedProjectiles in class net.minecraft.world.item.BowItem
    • customArrow

      @NotNull public @NotNull net.minecraft.world.entity.projectile.AbstractArrow customArrow(@NotNull @NotNull net.minecraft.world.entity.projectile.AbstractArrow arrow)
      Overrides:
      customArrow in class net.minecraft.world.item.BowItem