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
Modifier and TypeClassDescriptionstatic 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
Modifier and TypeFieldDescriptionfinal PixelmonEntity
The Pokémon being photographed.final net.minecraft.server.level.ServerPlayer
The player taking a photo. -
Constructor Summary
ConstructorDescriptionCameraEvent
(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
-
Field Details
-
player
public final net.minecraft.server.level.ServerPlayer playerThe player taking a photo. -
pixelmon
The Pokémon being photographed.
-
-
Constructor Details
-
CameraEvent
-