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.level.ItemLike,net.minecraftforge.common.extensions.IForgeItem
public class MemoryStickItem
extends net.minecraft.world.item.Item
implements ColorHandlers.ITintableItem, ILeftClickableItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested 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, category, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(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 voidcacheMemoryStickLocation(net.minecraft.world.entity.player.Player entityIn, MemoryStickItem.MemoryStickLocator locator) intgetBarWidth(net.minecraft.world.item.ItemStack pStack) intgetTintColor(net.minecraft.world.item.ItemStack stack, int tintIndex) net.minecraftforge.common.capabilities.ICapabilityProviderinitCapabilities(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag nbt) voidinventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.Entity entityIn, int itemSlot, boolean isSelected) booleanisBarVisible(net.minecraft.world.item.ItemStack pStack) static booleanisRoomInStick(net.minecraft.world.item.ItemStack stick) voidonLeftClickEmpty(net.minecraft.server.level.ServerPlayer sender) static voidsetAbsorbXPOrbs(net.minecraft.world.item.ItemStack stack, boolean absorb) static booleanshouldAbsorbXPOrbs(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
allowedIn, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, fillItemCategory, finishUsingItem, getBarColor, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getEquipSound, getFoodProperties, getId, getItemCategory, 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, 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.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreativeTabs, 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:
usein classnet.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:
appendHoverTextin classnet.minecraft.world.item.Item
-
getBarWidth
public int getBarWidth(net.minecraft.world.item.ItemStack pStack) - Overrides:
getBarWidthin classnet.minecraft.world.item.Item
-
isBarVisible
public boolean isBarVisible(net.minecraft.world.item.ItemStack pStack) - Overrides:
isBarVisiblein classnet.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:
initCapabilitiesin interfacenet.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:
getTintColorin interfaceColorHandlers.ITintableItem
-
onLeftClickEmpty
public void onLeftClickEmpty(net.minecraft.server.level.ServerPlayer sender) - Specified by:
onLeftClickEmptyin interfaceILeftClickableItem
-
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:
inventoryTickin classnet.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)
-