Class HTWarpedWartItem
-
- All Implemented Interfaces:
-
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IItemExtension
public final class HTWarpedWartItem extends HTDescriptionBlockItem<HTWarpedWartBlock>
-
-
Field Summary
Fields Modifier and Type Field Description private final StringdescriptionIdprivate final SoundEventdrinkingSoundprivate final SoundEventeatingSoundprivate final IntegerdefaultMaxStackSizeprivate final IntegerenchantmentValueprivate final SoundEventbreakingSoundprivate final ItemcraftingRemainingItemprivate final BooleanisComplexprivate final ItemAttributeModifiersdefaultAttributeModifiersprivate final HTWarpedWartBlockblockprivate final ItemStackdefaultInstanceprivate final Componentdescription
-
Constructor Summary
Constructors Constructor Description HTWarpedWartItem(HTWarpedWartBlock block, Item.Properties properties)
-
Method Summary
Modifier and Type Method Description ItemStackfinishUsingItem(ItemStack stack, Level level, LivingEntity livingEntity)UseAnimgetUseAnimation(ItemStack stack)IntegergetUseDuration(ItemStack stack, LivingEntity entity)FoodPropertiesgetFoodProperties(ItemStack stack, LivingEntity entity)-
Methods inherited from class net.minecraft.world.item.BlockItem
getDescriptionId, place, registerBlocks, removeFromBlockToItemMap, updatePlacementContext -
Methods inherited from class net.minecraft.world.item.Item
builtInRegistryHolder, canAttackBlock, canFitInsideContainerItems, components, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getTooltipImage, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, use, useOn, useOnRelease, verifyComponentsAfterLoad -
Methods inherited from class hiiragi283.core.common.item.block.HTWarpedWartItem
getBlock -
Methods inherited from class hiiragi283.core.api.item.HTDescriptionBlockItem
appendHoverText -
Methods inherited from class hiiragi283.core.api.item.HTBlockItem
getBlock, getName -
Methods inherited from class net.neoforged.neoforge.common.extensions.IItemExtension
applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canFitInsideContainerItems, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, isRepairable, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, supportsEnchantment -
Methods inherited from class net.minecraft.world.flag.FeatureElement
isEnabled, requiredFeatures -
Methods inherited from class net.minecraft.world.level.ItemLike
asItem -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTWarpedWartItem
HTWarpedWartItem(HTWarpedWartBlock block, Item.Properties properties)
-
-
Method Detail
-
finishUsingItem
ItemStack finishUsingItem(ItemStack stack, Level level, LivingEntity livingEntity)
-
getUseAnimation
UseAnim getUseAnimation(ItemStack stack)
-
getUseDuration
Integer getUseDuration(ItemStack stack, LivingEntity entity)
-
getFoodProperties
FoodProperties getFoodProperties(ItemStack stack, LivingEntity entity)
-
-
-
-