Class InventoryPlayerSlotReference

java.lang.Object
com.refinedmods.refinedstorage.common.support.slotreference.InventoryPlayerSlotReference
All Implemented Interfaces:
PlayerSlotReference

public final class InventoryPlayerSlotReference extends Object implements PlayerSlotReference
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, InventoryPlayerSlotReference>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    get(net.minecraft.world.entity.player.Player player)
     
    net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ? extends PlayerSlotReference>
     
    boolean
    isDisabled(int playerSlotIndex)
     
    of(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
     
    void
    set(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      get in interface PlayerSlotReference
    • set

      public void set(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
      Specified by:
      set in interface PlayerSlotReference
    • getStreamCodec

      public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ? extends PlayerSlotReference> getStreamCodec()
      Specified by:
      getStreamCodec in interface PlayerSlotReference
    • isDisabled

      public boolean isDisabled(int playerSlotIndex)
      Specified by:
      isDisabled in interface PlayerSlotReference
    • of

      public static PlayerSlotReference of(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)