Class PlayerInventoryCompatWrapper_Minecraft_1_21_5

java.lang.Object
net.thomilist.dimensionalinventories.compatibility.minecraft.inventory.PlayerInventoryCompatWrapper_Minecraft_1_21_5
All Implemented Interfaces:
CompatWrapper, PlayerInventoryCompatWrapper

public class PlayerInventoryCompatWrapper_Minecraft_1_21_5 extends Object implements PlayerInventoryCompatWrapper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getArmor(net.minecraft.world.entity.player.Inventory playerInventory)
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getMain(net.minecraft.world.entity.player.Inventory playerInventory)
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getOffHand(net.minecraft.world.entity.player.Inventory playerInventory)
     
    void
    setArmor(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemStacks)
     
    void
    setMain(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemStacks)
     
    void
    setOffHand(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemStacks)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface CompatWrapper

    onServerStarted
    Modifier and Type
    Method
    Description
    default void
    onServerStarted(net.minecraft.server.MinecraftServer server)
     
  • Constructor Details

    • PlayerInventoryCompatWrapper_Minecraft_1_21_5

      public PlayerInventoryCompatWrapper_Minecraft_1_21_5()
  • Method Details

    • getArmor

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getArmor(net.minecraft.world.entity.player.Inventory playerInventory)
      Specified by:
      getArmor in interface PlayerInventoryCompatWrapper
    • setArmor

      public void setArmor(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemStacks)
      Specified by:
      setArmor in interface PlayerInventoryCompatWrapper
    • getMain

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getMain(net.minecraft.world.entity.player.Inventory playerInventory)
      Specified by:
      getMain in interface PlayerInventoryCompatWrapper
    • setMain

      public void setMain(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemStacks)
      Specified by:
      setMain in interface PlayerInventoryCompatWrapper
    • getOffHand

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getOffHand(net.minecraft.world.entity.player.Inventory playerInventory)
      Specified by:
      getOffHand in interface PlayerInventoryCompatWrapper
    • setOffHand

      public void setOffHand(net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> itemStacks)
      Specified by:
      setOffHand in interface PlayerInventoryCompatWrapper