Class CameraEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.CameraEvent
Direct Known Subclasses:
CameraEvent.ConsumeFilm, CameraEvent.DuplicatePhoto, CameraEvent.TakePhoto

public abstract class CameraEvent extends net.minecraftforge.eventbus.api.Event
Superclass event for actions related to the Camera.

Subclasses: CameraEvent.DuplicatePhoto, CameraEvent.ConsumeFilm, CameraEvent.TakePhoto

Since:
May 05, 2021
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Event that fires when an camera film is about to be consumed.
    static class 
    Event that fires when an attempt at taking a photo is about to fail because the player already has done so for that Pokémon.
    static class 
    Event that fires when a photo is about to be taken.

    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
    The Pokémon being photographed.
    final net.minecraft.server.level.ServerPlayer
    The player taking a photo.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CameraEvent(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon)
     
  • 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

    • player

      public final net.minecraft.server.level.ServerPlayer player
      The player taking a photo.
    • pixelmon

      public final PixelmonEntity pixelmon
      The Pokémon being photographed.
  • Constructor Details

    • CameraEvent

      public CameraEvent(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon)