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_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionMalletItem(net.minecraft.world.item.Tier tier, double damage, double chargedDamage, float attackSpeed, net.minecraft.world.item.Item.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallied(net.minecraft.world.entity.Entity ally, net.minecraft.world.entity.Entity target, boolean friendlyFire) booleancanApplyAtEnchantingTable(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 booleangetFriendlyFire(net.minecraft.world.item.ItemStack stack) static floatgetPowerForTime(int pCharge) @NotNull net.minecraft.world.item.UseAnimgetUseAnimation(@NotNull net.minecraft.world.item.ItemStack stack) intgetUseDuration(@NotNull net.minecraft.world.item.ItemStack stack) voidinitializeClient(@NotNull Consumer<net.minecraftforge.client.extensions.common.IClientItemExtensions> consumer) booleanoverrideOtherStackedOnMe(@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) voidreleaseUsing(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity entity, int timeCharged) static voidsetFriendlyFire(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, isValidRepairItemMethods 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, 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
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:
initializeClientin classnet.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:
getAttributeModifiersin interfacenet.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:
releaseUsingin classnet.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:
getUseDurationin classnet.minecraft.world.item.Item
-
getUseAnimation
@NotNull public @NotNull net.minecraft.world.item.UseAnim getUseAnimation(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
getUseAnimationin classnet.minecraft.world.item.Item
-
canApplyAtEnchantingTable
public boolean canApplyAtEnchantingTable(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.enchantment.Enchantment enchantment) - Specified by:
canApplyAtEnchantingTablein interfacenet.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:
usein classnet.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:
overrideOtherStackedOnMein classnet.minecraft.world.item.Item
-