Class InventoryPlayerSlotReference
java.lang.Object
com.refinedmods.refinedstorage.common.support.slotreference.InventoryPlayerSlotReference
- All Implemented Interfaces:
PlayerSlotReference
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, InventoryPlayerSlotReference> -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackget(net.minecraft.world.entity.player.Player player) net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ? extends PlayerSlotReference> booleanisDisabled(int playerSlotIndex) static PlayerSlotReferenceof(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) voidset(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, InventoryPlayerSlotReference> STREAM_CODEC
-
-
Method Details
-
get
public net.minecraft.world.item.ItemStack get(net.minecraft.world.entity.player.Player player) - Specified by:
getin interfacePlayerSlotReference
-
set
public void set(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) - Specified by:
setin interfacePlayerSlotReference
-
getStreamCodec
public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ? extends PlayerSlotReference> getStreamCodec()- Specified by:
getStreamCodecin interfacePlayerSlotReference
-
isDisabled
public boolean isDisabled(int playerSlotIndex) - Specified by:
isDisabledin interfacePlayerSlotReference
-
of
public static PlayerSlotReference of(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
-