ItemSlotMouseAction.java

net.minecraft.client.gui.ItemSlotMouseAction

信息

  • 全限定名:net.minecraft.client.gui.ItemSlotMouseAction
  • 类型:public interface
  • 包:net.minecraft.client.gui
  • 源码路径:src/main/java/net/minecraft/client/gui/ItemSlotMouseAction.java
  • 起始行号:L10
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

构造器

方法

下面的方法块按源码顺序生成。

boolean matches(Slot slot) @ L11

  • 方法名:matches
  • 源码定位:L11
  • 返回类型:boolean
  • 修饰符:package-private

参数:

  • slot: Slot

说明:

TODO

boolean onMouseScrolled(double scrollX, double scrollY, int slotIndex, ItemStack itemStack) @ L13

  • 方法名:onMouseScrolled
  • 源码定位:L13
  • 返回类型:boolean
  • 修饰符:package-private

参数:

  • scrollX: double
  • scrollY: double
  • slotIndex: int
  • itemStack: ItemStack

说明:

TODO

void onStopHovering(Slot hoveredSlot) @ L15

  • 方法名:onStopHovering
  • 源码定位:L15
  • 返回类型:void
  • 修饰符:package-private

参数:

  • hoveredSlot: Slot

说明:

TODO

void onSlotClicked(Slot slot, ContainerInput containerInput) @ L17

  • 方法名:onSlotClicked
  • 源码定位:L17
  • 返回类型:void
  • 修饰符:package-private

参数:

  • slot: Slot
  • containerInput: ContainerInput

说明:

TODO

代码

@OnlyIn(Dist.CLIENT)
public interface ItemSlotMouseAction {
    boolean matches(final Slot slot);
 
    boolean onMouseScrolled(final double scrollX, final double scrollY, final int slotIndex, final ItemStack itemStack);
 
    void onStopHovering(final Slot hoveredSlot);
 
    void onSlotClicked(final Slot slot, ContainerInput containerInput);
}

引用的其他类