Class BattleMessageEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleMessageEvent
public class BattleMessageEvent
extends net.minecraftforge.eventbus.api.Event
Event fired when battle messages are sent to an entity from a battle. For all entities
except players, these message prompts are ignored entirely. This event is fired for
all battle messages. The nature of this means that the battle controller is unknown
during the firing of this event.
- Since:
- June 18, 2019
-
Nested Class Summary
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
-
Constructor Summary
ConstructorDescriptionBattleMessageEvent
(net.minecraft.world.entity.Entity target, net.minecraft.network.chat.Component component) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
target
public final net.minecraft.world.entity.Entity targetThe entity being messaged. -
component
public final net.minecraft.network.chat.Component componentThe message being sent, as aComponent
.
-
-
Constructor Details
-
BattleMessageEvent
public BattleMessageEvent(net.minecraft.world.entity.Entity target, net.minecraft.network.chat.Component component)
-