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
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.entity.ai.attributes.AttributeModifierstatic final Stringstatic final Stringstatic final intstatic final net.minecraft.world.entity.ai.attributes.AttributeModifierFields 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_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddReachToJoiningPlayersHoldingExtendo(net.neoforged.neoforge.event.entity.player.PlayerEvent.PlayerLoggedInEvent event) static voidattacksByExtendoGripHaveMoreKnockback(net.neoforged.neoforge.event.entity.living.LivingKnockBackEvent event) static voidbufferLivingAttackEvent(net.neoforged.neoforge.event.entity.living.LivingIncomingDamageEvent event) static voidconsumeDurabilityOnBlockBreak(net.neoforged.neoforge.event.level.BlockEvent.BreakEvent event) static voidconsumeDurabilityOnPlace(net.neoforged.neoforge.event.level.BlockEvent.EntityPlaceEvent event) static voiddontMissEntitiesWhenYouHaveHighReachDistance(net.neoforged.neoforge.client.event.InputEvent.InteractionKeyMappingTriggered event) intgetBarColor(net.minecraft.world.item.ItemStack stack) intgetBarWidth(net.minecraft.world.item.ItemStack stack) static voidholdingExtendoGripIncreasesRange(net.neoforged.neoforge.event.tick.EntityTickEvent.Pre event) voidinitializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer) booleanisBarVisible(net.minecraft.world.item.ItemStack stack) static booleanisHoldingExtendoGrip(net.minecraft.world.entity.player.Player player) static voidnotifyServerOfLongRangeAttacks(net.neoforged.neoforge.event.entity.player.AttackEntityEvent event) static voidnotifyServerOfLongRangeInteractions(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.EntityInteract event) static voidnotifyServerOfLongRangeSpecificInteractions(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, verifyComponentsAfterLoadMethods 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.neoforged.neoforge.common.extensions.IItemExtension
applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, 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
- See Also:
-
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:
isBarVisiblein classnet.minecraft.world.item.Item
-
getBarWidth
public int getBarWidth(net.minecraft.world.item.ItemStack stack) - Overrides:
getBarWidthin classnet.minecraft.world.item.Item
-
getBarColor
public int getBarColor(net.minecraft.world.item.ItemStack stack) - Overrides:
getBarColorin classnet.minecraft.world.item.Item
-
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:
initializeClientin classnet.minecraft.world.item.Item
-