Class KubeJSInventoryListener

java.lang.Object
dev.latvian.mods.kubejs.player.KubeJSInventoryListener
All Implemented Interfaces:
net.minecraft.world.inventory.ContainerListener

public class KubeJSInventoryListener extends Object implements net.minecraft.world.inventory.ContainerListener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.world.entity.player.Player
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    KubeJSInventoryListener(net.minecraft.world.entity.player.Player p)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dataChanged(net.minecraft.world.inventory.AbstractContainerMenu container, int id, int value)
     
    void
    slotChanged(net.minecraft.world.inventory.AbstractContainerMenu container, int index, net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • player

      public final net.minecraft.world.entity.player.Player player
  • Constructor Details

    • KubeJSInventoryListener

      public KubeJSInventoryListener(net.minecraft.world.entity.player.Player p)
  • Method Details

    • slotChanged

      public void slotChanged(net.minecraft.world.inventory.AbstractContainerMenu container, int index, net.minecraft.world.item.ItemStack stack)
      Specified by:
      slotChanged in interface net.minecraft.world.inventory.ContainerListener
    • dataChanged

      public void dataChanged(net.minecraft.world.inventory.AbstractContainerMenu container, int id, int value)
      Specified by:
      dataChanged in interface net.minecraft.world.inventory.ContainerListener