Class CameraEvent.TakePhoto

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.CameraEvent
com.pixelmonmod.pixelmon.api.events.CameraEvent.TakePhoto
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
CameraEvent

public static class CameraEvent.TakePhoto extends CameraEvent implements net.neoforged.bus.api.ICancellableEvent
Event that fires when a photo is about to be taken. Cancel to prevent the item being given.
  • Field Details

    • photo

      public net.minecraft.world.item.ItemStack photo
  • Constructor Details

    • TakePhoto

      public TakePhoto(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon, net.minecraft.world.item.ItemStack photo)