Class MemoryStickItem

java.lang.Object
net.minecraft.world.item.Item
me.desht.pneumaticcraft.common.item.MemoryStickItem
All Implemented Interfaces:
ColorHandlers.ITintableItem, ILeftClickableItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem

public class MemoryStickItem extends net.minecraft.world.item.Item implements ColorHandlers.ITintableItem, ILeftClickableItem
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level worldIn, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flagIn)
     
    static void
    cacheMemoryStickLocation(net.minecraft.world.entity.player.Player entityIn, MemoryStickItem.MemoryStickLocator locator)
     
    int
    getBarWidth(net.minecraft.world.item.ItemStack pStack)
     
    int
    getTintColor(net.minecraft.world.item.ItemStack stack, int tintIndex)
     
    net.minecraftforge.common.capabilities.ICapabilityProvider
    initCapabilities(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag nbt)
     
    void
    inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.Entity entityIn, int itemSlot, boolean isSelected)
     
    boolean
    isBarVisible(net.minecraft.world.item.ItemStack pStack)
     
    static boolean
    isRoomInStick(net.minecraft.world.item.ItemStack stick)
     
    void
    onLeftClickEmpty(net.minecraft.server.level.ServerPlayer sender)
     
    static void
    setAbsorbXPOrbs(net.minecraft.world.item.ItemStack stack, boolean absorb)
     
    static boolean
    shouldAbsorbXPOrbs(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player playerIn, net.minecraft.world.InteractionHand handIn)
     

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

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getEquipSound, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, 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

    canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Constructor Details

    • MemoryStickItem

      public MemoryStickItem()
  • Method Details

    • use

      public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player playerIn, net.minecraft.world.InteractionHand handIn)
      Overrides:
      use in class net.minecraft.world.item.Item
    • appendHoverText

      public void appendHoverText(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.level.Level worldIn, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flagIn)
      Overrides:
      appendHoverText in class net.minecraft.world.item.Item
    • getBarWidth

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

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

      @Nullable public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      initCapabilities in interface net.minecraftforge.common.extensions.IForgeItem
    • shouldAbsorbXPOrbs

      public static boolean shouldAbsorbXPOrbs(net.minecraft.world.item.ItemStack stack)
    • setAbsorbXPOrbs

      public static void setAbsorbXPOrbs(net.minecraft.world.item.ItemStack stack, boolean absorb)
    • getTintColor

      public int getTintColor(net.minecraft.world.item.ItemStack stack, int tintIndex)
      Specified by:
      getTintColor in interface ColorHandlers.ITintableItem
    • onLeftClickEmpty

      public void onLeftClickEmpty(net.minecraft.server.level.ServerPlayer sender)
      Specified by:
      onLeftClickEmpty in interface ILeftClickableItem
    • inventoryTick

      public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.Entity entityIn, int itemSlot, boolean isSelected)
      Overrides:
      inventoryTick in class net.minecraft.world.item.Item
    • isRoomInStick

      public static boolean isRoomInStick(net.minecraft.world.item.ItemStack stick)
    • cacheMemoryStickLocation

      public static void cacheMemoryStickLocation(net.minecraft.world.entity.player.Player entityIn, MemoryStickItem.MemoryStickLocator locator)