Class MalletItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
nokunami.floral_warfare.common.item.MalletItem
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 MalletItem extends net.minecraft.world.item.TieredItem implements net.minecraft.world.item.Vanishable
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    MalletItem(net.minecraft.world.item.Tier tier, double damage, double chargedDamage, float attackSpeed, net.minecraft.world.item.Item.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    allied(net.minecraft.world.entity.Entity ally, net.minecraft.world.entity.Entity target, boolean friendlyFire)
     
    boolean
    canApplyAtEnchantingTable(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.enchantment.Enchantment enchantment)
     
    com.google.common.collect.Multimap<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier>
    getAttributeModifiers(net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack stack)
     
    Set<net.minecraft.world.entity.Entity>
    getEntityList(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity entity)
     
    static boolean
    getFriendlyFire(net.minecraft.world.item.ItemStack stack)
     
    static float
    getPowerForTime(int pCharge)
     
    @NotNull net.minecraft.world.item.UseAnim
    getUseAnimation(@NotNull net.minecraft.world.item.ItemStack stack)
     
    int
    getUseDuration(@NotNull net.minecraft.world.item.ItemStack stack)
     
    void
    initializeClient(@NotNull Consumer<net.minecraftforge.client.extensions.common.IClientItemExtensions> consumer)
     
    boolean
    overrideOtherStackedOnMe(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.item.ItemStack other, @NotNull net.minecraft.world.inventory.Slot slot, net.minecraft.world.inventory.ClickAction action, @NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.entity.SlotAccess access)
     
    void
    releaseUsing(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity entity, int timeCharged)
     
    static void
    setFriendlyFire(net.minecraft.world.item.ItemStack stack, boolean b)
     
    @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(@NotNull net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand)
     

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

    getEnchantmentValue, getTier, isValidRepairItem

    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, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, mineBlock, onCraftedBy, onDestroyed, onUseTick, 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

    canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, 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

    • MalletItem

      public MalletItem(net.minecraft.world.item.Tier tier, double damage, double chargedDamage, float attackSpeed, net.minecraft.world.item.Item.Properties properties)
  • Method Details

    • initializeClient

      public void initializeClient(@NotNull @NotNull Consumer<net.minecraftforge.client.extensions.common.IClientItemExtensions> consumer)
      Overrides:
      initializeClient in class net.minecraft.world.item.Item
    • getAttributeModifiers

      public com.google.common.collect.Multimap<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers(net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack stack)
      Specified by:
      getAttributeModifiers in interface net.minecraftforge.common.extensions.IForgeItem
    • releaseUsing

      public void releaseUsing(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity entity, int timeCharged)
      Overrides:
      releaseUsing in class net.minecraft.world.item.Item
    • getEntityList

      public Set<net.minecraft.world.entity.Entity> getEntityList(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity entity)
    • allied

      public static boolean allied(net.minecraft.world.entity.Entity ally, net.minecraft.world.entity.Entity target, boolean friendlyFire)
    • getFriendlyFire

      public static boolean getFriendlyFire(net.minecraft.world.item.ItemStack stack)
    • setFriendlyFire

      public static void setFriendlyFire(net.minecraft.world.item.ItemStack stack, boolean b)
    • getPowerForTime

      public static float getPowerForTime(int pCharge)
    • getUseDuration

      public int getUseDuration(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      getUseDuration in class net.minecraft.world.item.Item
    • getUseAnimation

      @NotNull public @NotNull net.minecraft.world.item.UseAnim getUseAnimation(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      getUseAnimation in class net.minecraft.world.item.Item
    • canApplyAtEnchantingTable

      public boolean canApplyAtEnchantingTable(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.enchantment.Enchantment enchantment)
      Specified by:
      canApplyAtEnchantingTable in interface net.minecraftforge.common.extensions.IForgeItem
    • use

      @NotNull public @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(@NotNull @NotNull net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand)
      Overrides:
      use in class net.minecraft.world.item.Item
    • overrideOtherStackedOnMe

      public boolean overrideOtherStackedOnMe(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.item.ItemStack other, @NotNull @NotNull net.minecraft.world.inventory.Slot slot, net.minecraft.world.inventory.ClickAction action, @NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.entity.SlotAccess access)
      Overrides:
      overrideOtherStackedOnMe in class net.minecraft.world.item.Item