Interface NetworkItemHelper
- All Known Implementing Classes:
NetworkItemHelperImpl
@API(status=STABLE,
since="2.0.0-milestone.3.1")
public interface NetworkItemHelper
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTooltip
(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> lines) net.minecraft.world.InteractionResult
bind
(net.minecraft.world.item.context.UseOnContext ctx) createContext
(net.minecraft.world.item.ItemStack stack, net.minecraft.server.level.ServerPlayer player, SlotReference slotReference) Optional
<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage
(net.minecraft.world.item.ItemStack stack) boolean
isBound
(net.minecraft.world.item.ItemStack stack)
-
Method Details
-
addTooltip
void addTooltip(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> lines) -
bind
net.minecraft.world.InteractionResult bind(net.minecraft.world.item.context.UseOnContext ctx) -
getTooltipImage
Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage(net.minecraft.world.item.ItemStack stack) -
createContext
NetworkItemContext createContext(net.minecraft.world.item.ItemStack stack, net.minecraft.server.level.ServerPlayer player, SlotReference slotReference) -
isBound
boolean isBound(net.minecraft.world.item.ItemStack stack)
-