Class EmptyInteractionEvent
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.event.EmptyInteractionEvent
- All Implemented Interfaces:
InteractionEventLogic
An implementation of the
InteractionEventLogic
for events that don't require a listener
and need to be triggered externally-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<EmptyInteractionEvent> static final EmptyInteractionEvent
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<? extends InteractionEventLogic> codec()
The codec for this interaction event logic.static EmptyInteractionEvent
create()
InteractionEventType
<? extends InteractionEventLogic> type()
The type of this interaction event logic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.event.InteractionEventLogic
addListener, createContext
-
Field Details
-
CODEC
-
INSTANCE
-
-
Method Details
-
codec
Description copied from interface:InteractionEventLogic
The codec for this interaction event logic.- Specified by:
codec
in interfaceInteractionEventLogic
- Returns:
- the codec for this interaction event logic
-
type
Description copied from interface:InteractionEventLogic
The type of this interaction event logic.- Specified by:
type
in interfaceInteractionEventLogic
- Returns:
- the type of this interaction event logic
-
create
-