Class CameraEvent

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

public abstract class CameraEvent extends net.neoforged.bus.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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    final net.minecraft.server.level.ServerPlayer
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CameraEvent(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.server.level.ServerPlayer
     

    Methods inherited from class java.lang.Object

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

    • player

      @Deprecated(forRemoval=true, since="9.3.10") public final net.minecraft.server.level.ServerPlayer player
      Deprecated, for removal: This API element is subject to removal in a future version.
    • pixelmon

      @Deprecated(forRemoval=true, since="9.3.10") public final PixelmonEntity pixelmon
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • CameraEvent

      protected CameraEvent(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon)
  • Method Details

    • getPlayer

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

      public PixelmonEntity getEntity()