Class ExtendoGripItem

java.lang.Object
net.minecraft.world.item.Item
com.simibubi.create.content.equipment.extendoGrip.ExtendoGripItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IItemExtension

public class ExtendoGripItem extends net.minecraft.world.item.Item
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.entity.ai.attributes.AttributeModifier
     
    static final String
     
    static final String
     
    static final int
     
    static final net.minecraft.world.entity.ai.attributes.AttributeModifier
     

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

    ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExtendoGripItem(net.minecraft.world.item.Item.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addReachToJoiningPlayersHoldingExtendo(net.neoforged.neoforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event)
     
    static void
    attacksByExtendoGripHaveMoreKnockback(net.neoforged.neoforge.event.entity.living.LivingKnockBackEvent event)
     
    static void
    bufferLivingAttackEvent(net.neoforged.neoforge.event.entity.living.LivingIncomingDamageEvent event)
     
    static void
    consumeDurabilityOnBlockBreak(net.neoforged.neoforge.event.level.BlockEvent.BreakEvent event)
     
    static void
    consumeDurabilityOnPlace(net.neoforged.neoforge.event.level.BlockEvent.EntityPlaceEvent event)
     
    boolean
    doesSneakBypassUse(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
     
    static void
    dontMissEntitiesWhenYouHaveHighReachDistance(net.neoforged.neoforge.client.event.InputEvent.InteractionKeyMappingTriggered event)
     
    int
    getBarColor(net.minecraft.world.item.ItemStack stack)
     
    int
    getBarWidth(net.minecraft.world.item.ItemStack stack)
     
    static void
    holdingExtendoGripIncreasesRange(net.neoforged.neoforge.event.tick.EntityTickEvent.Pre event)
     
    void
    initializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer)
     
    boolean
    isBarVisible(net.minecraft.world.item.ItemStack stack)
     
    static boolean
    isHoldingExtendoGrip(net.minecraft.world.entity.player.Player player)
     
    static void
    notifyServerOfLongRangeAttacks(net.neoforged.neoforge.event.entity.player.AttackEntityEvent event)
     
    static void
    notifyServerOfLongRangeInteractions(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.EntityInteract event)
     
    static void
    notifyServerOfLongRangeSpecificInteractions(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.EntityInteractSpecific event)
     

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

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isRepairable, isValidRepairItem, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, use, useOn, useOnRelease, verifyComponentsAfterLoad

    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.neoforged.neoforge.common.extensions.IItemExtension

    applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, elytraFlightTick, getAllEnchantments, getArmorTexture, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, supportsEnchantment
  • Field Details

    • MAX_DAMAGE

      public static final int MAX_DAMAGE
      See Also:
    • singleRangeAttributeModifier

      public static final net.minecraft.world.entity.ai.attributes.AttributeModifier singleRangeAttributeModifier
    • doubleRangeAttributeModifier

      public static final net.minecraft.world.entity.ai.attributes.AttributeModifier doubleRangeAttributeModifier
    • EXTENDO_MARKER

      public static final String EXTENDO_MARKER
      See Also:
    • DUAL_EXTENDO_MARKER

      public static final String DUAL_EXTENDO_MARKER
      See Also:
  • Constructor Details

    • ExtendoGripItem

      public ExtendoGripItem(net.minecraft.world.item.Item.Properties properties)
  • Method Details

    • holdingExtendoGripIncreasesRange

      public static void holdingExtendoGripIncreasesRange(net.neoforged.neoforge.event.tick.EntityTickEvent.Pre event)
    • addReachToJoiningPlayersHoldingExtendo

      public static void addReachToJoiningPlayersHoldingExtendo(net.neoforged.neoforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event)
    • dontMissEntitiesWhenYouHaveHighReachDistance

      public static void dontMissEntitiesWhenYouHaveHighReachDistance(net.neoforged.neoforge.client.event.InputEvent.InteractionKeyMappingTriggered event)
    • consumeDurabilityOnBlockBreak

      public static void consumeDurabilityOnBlockBreak(net.neoforged.neoforge.event.level.BlockEvent.BreakEvent event)
    • consumeDurabilityOnPlace

      public static void consumeDurabilityOnPlace(net.neoforged.neoforge.event.level.BlockEvent.EntityPlaceEvent event)
    • isBarVisible

      public boolean isBarVisible(net.minecraft.world.item.ItemStack stack)
      Overrides:
      isBarVisible in class net.minecraft.world.item.Item
    • getBarWidth

      public int getBarWidth(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getBarWidth in class net.minecraft.world.item.Item
    • getBarColor

      public int getBarColor(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getBarColor in class net.minecraft.world.item.Item
    • doesSneakBypassUse

      public boolean doesSneakBypassUse(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
    • bufferLivingAttackEvent

      public static void bufferLivingAttackEvent(net.neoforged.neoforge.event.entity.living.LivingIncomingDamageEvent event)
    • attacksByExtendoGripHaveMoreKnockback

      public static void attacksByExtendoGripHaveMoreKnockback(net.neoforged.neoforge.event.entity.living.LivingKnockBackEvent event)
    • notifyServerOfLongRangeAttacks

      public static void notifyServerOfLongRangeAttacks(net.neoforged.neoforge.event.entity.player.AttackEntityEvent event)
    • notifyServerOfLongRangeInteractions

      public static void notifyServerOfLongRangeInteractions(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.EntityInteract event)
    • notifyServerOfLongRangeSpecificInteractions

      public static void notifyServerOfLongRangeSpecificInteractions(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.EntityInteractSpecific event)
    • isHoldingExtendoGrip

      public static boolean isHoldingExtendoGrip(net.minecraft.world.entity.player.Player player)
    • initializeClient

      public void initializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer)
      Overrides:
      initializeClient in class net.minecraft.world.item.Item