Interface PlayerEntityEvent.ItemPickedUp

Enclosing interface:
PlayerEntityEvent

public static interface PlayerEntityEvent.ItemPickedUp
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    invoke(net.minecraft.server.network.ServerPlayerEntity playerEntity, net.minecraft.entity.ItemEntity itemEntity, int pickedUpCount)
    A TEvent that is invoked when a ServerPlayerEntity picks up an ItemEntity.
  • Method Details

    • invoke

      void invoke(net.minecraft.server.network.ServerPlayerEntity playerEntity, net.minecraft.entity.ItemEntity itemEntity, int pickedUpCount)
      A TEvent that is invoked when a ServerPlayerEntity picks up an ItemEntity.
      Parameters:
      playerEntity - The ServerPlayerEntity.
      itemEntity - The ItemEntity being picked up.
      pickedUpCount - The amount that could fit in the ServerPlayerEntity's inventory, and was therefore picked-up.