Class CameraEvent.TakePhoto

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.CameraEvent
com.pixelmonmod.pixelmon.api.events.CameraEvent.TakePhoto
Enclosing class:
CameraEvent

public static class CameraEvent.TakePhoto extends CameraEvent
Event that fires when a photo is about to be taken. Cancel to prevent the item being given.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.CameraEvent

    CameraEvent.ConsumeFilm, CameraEvent.DuplicatePhoto, CameraEvent.TakePhoto

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

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

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.world.item.ItemStack
     

    Fields inherited from class com.pixelmonmod.pixelmon.api.events.CameraEvent

    pixelmon, player
  • Constructor Summary

    Constructors
    Constructor
    Description
    TakePhoto(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon, net.minecraft.world.item.ItemStack photo)
     
  • Method Summary

    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
  • 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)