Uses of Interface
net.minecraft.world.item.Item.TooltipContext
Package
Description
-
Uses of Item.TooltipContext in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionSessionSearchTrees.getTooltipLines
(Stream<ItemStack> p_344879_, Item.TooltipContext p_345662_, TooltipFlag p_345262_) -
Uses of Item.TooltipContext in net.minecraft.world.item
Modifier and TypeMethodDescriptionstatic Item.TooltipContext
Item.TooltipContext.of
(HolderLookup.Provider p_339633_) static Item.TooltipContext
Modifier and TypeMethodDescription<T extends TooltipProvider>
voidItemStack.addToTooltip
(DataComponentType<T> p_331344_, Item.TooltipContext p_341231_, Consumer<Component> p_331885_, TooltipFlag p_331177_) void
JukeboxPlayable.addToTooltip
(Item.TooltipContext p_350489_, Consumer<Component> p_350818_, TooltipFlag p_350358_) void
AirItem.appendHoverText
(ItemStack p_40372_, Item.TooltipContext p_339659_, List<Component> p_40374_, TooltipFlag p_40375_) void
BannerItem.appendHoverText
(ItemStack p_40538_, Item.TooltipContext p_339668_, List<Component> p_40540_, TooltipFlag p_40541_) void
BannerPatternItem.appendHoverText
(ItemStack p_40551_, Item.TooltipContext p_339598_, List<Component> p_40553_, TooltipFlag p_40554_) void
BlockItem.appendHoverText
(ItemStack p_40572_, Item.TooltipContext p_339655_, List<Component> p_40574_, TooltipFlag p_40575_) void
BundleItem.appendHoverText
(ItemStack p_150749_, Item.TooltipContext p_339687_, List<Component> p_150751_, TooltipFlag p_150752_) void
CrossbowItem.appendHoverText
(ItemStack p_40880_, Item.TooltipContext p_339686_, List<Component> p_40882_, TooltipFlag p_40883_) void
DiscFragmentItem.appendHoverText
(ItemStack p_220031_, Item.TooltipContext p_339652_, List<Component> p_220033_, TooltipFlag p_220034_) void
FireworkRocketItem.appendHoverText
(ItemStack p_41211_, Item.TooltipContext p_339661_, List<Component> p_41213_, TooltipFlag p_41214_) void
FireworkStarItem.appendHoverText
(ItemStack p_41252_, Item.TooltipContext p_339685_, List<Component> p_41254_, TooltipFlag p_41255_) void
HangingEntityItem.appendHoverText
(ItemStack p_270235_, Item.TooltipContext p_339644_, List<Component> p_270630_, TooltipFlag p_270170_) void
InstrumentItem.appendHoverText
(ItemStack p_220115_, Item.TooltipContext p_339630_, List<Component> p_220117_, TooltipFlag p_220118_) void
Item.appendHoverText
(ItemStack p_41421_, Item.TooltipContext p_339594_, List<Component> p_41423_, TooltipFlag p_41424_) void
LingeringPotionItem.appendHoverText
(ItemStack p_42838_, Item.TooltipContext p_339607_, List<Component> p_42840_, TooltipFlag p_42841_) void
MapItem.appendHoverText
(ItemStack p_42880_, Item.TooltipContext p_339653_, List<Component> p_42882_, TooltipFlag p_42883_) void
MobBucketItem.appendHoverText
(ItemStack p_151155_, Item.TooltipContext p_339675_, List<Component> p_151157_, TooltipFlag p_151158_) void
OminousBottleItem.appendHoverText
(ItemStack p_338470_, Item.TooltipContext p_339656_, List<Component> p_338463_, TooltipFlag p_338317_) void
PotionItem.appendHoverText
(ItemStack p_42988_, Item.TooltipContext p_339608_, List<Component> p_42990_, TooltipFlag p_42991_) void
ShieldItem.appendHoverText
(ItemStack p_43094_, Item.TooltipContext p_339613_, List<Component> p_43096_, TooltipFlag p_43097_) void
SmithingTemplateItem.appendHoverText
(ItemStack p_267313_, Item.TooltipContext p_339591_, List<Component> p_266820_, TooltipFlag p_266857_) void
SuspiciousStewItem.appendHoverText
(ItemStack p_260314_, Item.TooltipContext p_339691_, List<Component> p_259700_, TooltipFlag p_260021_) void
TippedArrowItem.appendHoverText
(ItemStack p_43359_, Item.TooltipContext p_339681_, List<Component> p_43361_, TooltipFlag p_43362_) void
WrittenBookItem.appendHoverText
(ItemStack p_43457_, Item.TooltipContext p_339643_, List<Component> p_43459_, TooltipFlag p_43460_) ItemStack.getTooltipLines
(Item.TooltipContext p_339637_, Player p_41652_, TooltipFlag p_41653_) -
Uses of Item.TooltipContext in net.minecraft.world.item.armortrim
Modifier and TypeMethodDescriptionvoid
ArmorTrim.addToTooltip
(Item.TooltipContext p_341366_, Consumer<Component> p_331480_, TooltipFlag p_330344_) -
Uses of Item.TooltipContext in net.minecraft.world.item.component
Modifier and TypeMethodDescriptionvoid
DyedItemColor.addToTooltip
(Item.TooltipContext p_340955_, Consumer<Component> p_331920_, TooltipFlag p_330757_) void
FireworkExplosion.addToTooltip
(Item.TooltipContext p_341341_, Consumer<Component> p_331404_, TooltipFlag p_330365_) void
Fireworks.addToTooltip
(Item.TooltipContext p_341156_, Consumer<Component> p_331099_, TooltipFlag p_330997_) void
ItemLore.addToTooltip
(Item.TooltipContext p_341353_, Consumer<Component> p_332116_, TooltipFlag p_330800_) void
TooltipProvider.addToTooltip
(Item.TooltipContext p_340892_, Consumer<Component> p_330337_, TooltipFlag p_331069_) void
Unbreakable.addToTooltip
(Item.TooltipContext p_341037_, Consumer<Component> p_330706_, TooltipFlag p_331385_) -
Uses of Item.TooltipContext in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionvoid
ItemEnchantments.addToTooltip
(Item.TooltipContext p_341290_, Consumer<Component> p_331119_, TooltipFlag p_330400_) -
Uses of Item.TooltipContext in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionvoid
Block.appendHoverText
(ItemStack p_49816_, Item.TooltipContext p_339606_, List<Component> p_49818_, TooltipFlag p_49819_) void
DecoratedPotBlock.appendHoverText
(ItemStack p_285238_, Item.TooltipContext p_339662_, List<Component> p_285448_, TooltipFlag p_284997_) void
ShulkerBoxBlock.appendHoverText
(ItemStack p_56193_, Item.TooltipContext p_339693_, List<Component> p_56195_, TooltipFlag p_56196_) void
SpawnerBlock.appendHoverText
(ItemStack p_255714_, Item.TooltipContext p_339639_, List<Component> p_255708_, TooltipFlag p_255667_) void
TrialSpawnerBlock.appendHoverText
(ItemStack p_312446_, Item.TooltipContext p_339621_, List<Component> p_312088_, TooltipFlag p_311895_) -
Uses of Item.TooltipContext in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault <T extends TooltipProvider>
voidIDataComponentHolderExtension.addToTooltip
(Supplier<? extends DataComponentType<T>> type, Item.TooltipContext context, Consumer<Component> adder, TooltipFlag flag) default <T extends TooltipProvider>
voidIDataComponentHolderExtension.addToTooltip
(DataComponentType<T> type, Item.TooltipContext context, Consumer<Component> adder, TooltipFlag flag) -
Uses of Item.TooltipContext in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic ItemTooltipEvent
EventHooks.onItemTooltip
(ItemStack itemStack, @Nullable Player entityPlayer, List<Component> list, TooltipFlag flags, Item.TooltipContext context) -
Uses of Item.TooltipContext in net.neoforged.neoforge.event.entity.player
ModifierConstructorDescriptionItemTooltipEvent
(ItemStack itemStack, @Nullable Player player, List<Component> list, TooltipFlag flags, Item.TooltipContext context) This event is fired inItemStack.getTooltipLines(TooltipContext, Player, TooltipFlag)
, which in turn is called from its respective GUIContainer. -
Uses of Item.TooltipContext in net.neoforged.neoforge.oldtest.client
Modifier and TypeMethodDescriptionvoid
CustomTooltipTest.CustomItemWithTooltip.appendHoverText
(ItemStack stack, Item.TooltipContext context, List<Component> components, TooltipFlag flag)