Class PlayerEquipItemEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.api.event.PlayerEquipItemEvent

public class PlayerEquipItemEvent extends net.neoforged.bus.api.Event
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerEquipItemEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack newItem, net.minecraft.world.item.ItemStack oldItem, net.minecraft.world.entity.EquipmentSlot equipmentSlot)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.entity.EquipmentSlot
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.server.level.ServerPlayer
     

    Methods inherited from class java.lang.Object

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

    • PlayerEquipItemEvent

      public PlayerEquipItemEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack newItem, net.minecraft.world.item.ItemStack oldItem, net.minecraft.world.entity.EquipmentSlot equipmentSlot)
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()
    • getNewItem

      public net.minecraft.world.item.ItemStack getNewItem()
    • getOldItem

      public net.minecraft.world.item.ItemStack getOldItem()
    • getEquipmentSlot

      public net.minecraft.world.entity.EquipmentSlot getEquipmentSlot()