public class ItemMemoryStick extends net.minecraft.item.Item implements ColorHandlers.ITintableItem, ILeftClickableItem
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemMemoryStick.Listener |
static class |
ItemMemoryStick.MemoryStickLocator |
| Constructor and Description |
|---|
ItemMemoryStick() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flagIn) |
static void |
cacheMemoryStickLocation(net.minecraft.entity.player.PlayerEntity entityIn,
ItemMemoryStick.MemoryStickLocator locator) |
double |
getDurabilityForDisplay(net.minecraft.item.ItemStack stack) |
int |
getTintColor(net.minecraft.item.ItemStack stack,
int tintIndex) |
net.minecraftforge.common.capabilities.ICapabilityProvider |
initCapabilities(net.minecraft.item.ItemStack stack,
net.minecraft.nbt.CompoundNBT nbt) |
void |
inventoryTick(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
net.minecraft.entity.Entity entityIn,
int itemSlot,
boolean isSelected) |
static boolean |
isRoomInStick(net.minecraft.item.ItemStack stick) |
void |
onLeftClickEmpty(net.minecraft.entity.player.ServerPlayerEntity sender) |
static void |
setAbsorbXPOrbs(net.minecraft.item.ItemStack stack,
boolean absorb) |
static boolean |
shouldAbsorbXPOrbs(net.minecraft.item.ItemStack stack) |
boolean |
showDurabilityBar(net.minecraft.item.ItemStack stack) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand handIn) |
allowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, is, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimationpublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand handIn)
use in class net.minecraft.item.Itempublic void appendHoverText(net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.world.World worldIn,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flagIn)
appendHoverText in class net.minecraft.item.Itempublic double getDurabilityForDisplay(net.minecraft.item.ItemStack stack)
getDurabilityForDisplay in interface net.minecraftforge.common.extensions.IForgeItempublic boolean showDurabilityBar(net.minecraft.item.ItemStack stack)
showDurabilityBar in interface net.minecraftforge.common.extensions.IForgeItem@Nullable
public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.nbt.CompoundNBT nbt)
initCapabilities in interface net.minecraftforge.common.extensions.IForgeItempublic static boolean shouldAbsorbXPOrbs(net.minecraft.item.ItemStack stack)
public static void setAbsorbXPOrbs(net.minecraft.item.ItemStack stack,
boolean absorb)
public int getTintColor(net.minecraft.item.ItemStack stack,
int tintIndex)
getTintColor in interface ColorHandlers.ITintableItempublic void onLeftClickEmpty(net.minecraft.entity.player.ServerPlayerEntity sender)
onLeftClickEmpty in interface ILeftClickableItempublic void inventoryTick(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
net.minecraft.entity.Entity entityIn,
int itemSlot,
boolean isSelected)
inventoryTick in class net.minecraft.item.Itempublic static boolean isRoomInStick(net.minecraft.item.ItemStack stick)
public static void cacheMemoryStickLocation(net.minecraft.entity.player.PlayerEntity entityIn,
ItemMemoryStick.MemoryStickLocator locator)