Package com.minecolonies.core.items
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_DURATIONFields inherited from class net.minecraft.world.item.ProjectileWeaponItem
ARROW_ONLY, ARROW_OR_FIREWORKFields 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
ConstructorsConstructorDescriptionItemPharaoScepter(net.minecraft.world.item.Item.Properties properties) Constructor method for the Chief Sword Item -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.entity.projectile.AbstractArrowcustomArrow(@NotNull net.minecraft.world.entity.projectile.AbstractArrow arrow) @NotNull Predicate<net.minecraft.world.item.ItemStack>voidreleaseUsing(@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, getUseDurationMethods inherited from class net.minecraft.world.item.ProjectileWeaponItem
getEnchantmentValue, getHeldProjectile, getSupportedHeldProjectilesMethods 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, 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, 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:
usein classnet.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:
releaseUsingin classnet.minecraft.world.item.BowItem
-
getAllSupportedProjectiles
- Overrides:
getAllSupportedProjectilesin classnet.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:
customArrowin classnet.minecraft.world.item.BowItem
-