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

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.network.chat.Component
    The message being sent, as a Component.
    final net.minecraft.world.entity.Entity
    The entity being messaged.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BattleMessageEvent(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

    Methods inherited from class java.lang.Object

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

    • target

      public final net.minecraft.world.entity.Entity target
      The entity being messaged.
    • component

      public final net.minecraft.network.chat.Component component
      The message being sent, as a Component.
  • Constructor Details

    • BattleMessageEvent

      public BattleMessageEvent(net.minecraft.world.entity.Entity target, net.minecraft.network.chat.Component component)