Package com.pixelmonmod.api.event
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
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
ConstructorDescriptionPlayerCraftItemsEvent
(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder, List<net.minecraft.world.item.ItemStack> craftedItems) -
Method Summary
Modifier and TypeMethodDescriptionList<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
-
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
-