Class PlayerCraftItemsEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.api.event.PlayerCraftItemsEvent

public class PlayerCraftItemsEvent extends net.minecraftforge.eventbus.api.Event
An event that is fired when a player crafts items.
This event is fired on the MinecraftForge.EVENT_BUS.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerCraftItemsEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder, List<net.minecraft.world.item.ItemStack> craftedItems)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.minecraft.world.item.ItemStack>
     
    net.minecraft.server.level.ServerPlayer
     
    net.minecraft.world.item.crafting.RecipeHolder<?>
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

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

    • PlayerCraftItemsEvent

      public PlayerCraftItemsEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder, List<net.minecraft.world.item.ItemStack> craftedItems)
  • Method Details

    • getPlayer

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

      public net.minecraft.world.item.crafting.RecipeHolder<?> getRecipeHolder()
    • getCraftedItems

      public List<net.minecraft.world.item.ItemStack> getCraftedItems()