Class NetworkItemHelperImpl
java.lang.Object
com.refinedmods.refinedstorage.common.support.network.item.NetworkItemHelperImpl
- All Implemented Interfaces:
NetworkItemHelper
-
Constructor Summary
-
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)
-
Constructor Details
-
NetworkItemHelperImpl
public NetworkItemHelperImpl()
-
-
Method Details
-
isBound
public boolean isBound(net.minecraft.world.item.ItemStack stack) - Specified by:
isBound
in interfaceNetworkItemHelper
-
addTooltip
public void addTooltip(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> lines) - Specified by:
addTooltip
in interfaceNetworkItemHelper
-
bind
public net.minecraft.world.InteractionResult bind(net.minecraft.world.item.context.UseOnContext ctx) - Specified by:
bind
in interfaceNetworkItemHelper
-
getTooltipImage
public Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage(net.minecraft.world.item.ItemStack stack) - Specified by:
getTooltipImage
in interfaceNetworkItemHelper
-
createContext
public NetworkItemContext createContext(net.minecraft.world.item.ItemStack stack, net.minecraft.server.level.ServerPlayer player, SlotReference slotReference) - Specified by:
createContext
in interfaceNetworkItemHelper
-