Class BadgeCaseEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.screens.BadgeCaseEvent
Direct Known Subclasses:
BadgeCaseEvent.Register, BadgeCaseEvent.Remove, BadgeCaseEvent.Swap

public abstract class BadgeCaseEvent extends net.minecraftforge.eventbus.api.Event
Sub classes are fired on the Pixelmon.EVENT_BUS If this badge case was created by a CustomBadgeCaseScreen action isCustom() will be true, otherwise it was likely created by a BadgeCase item. Created by Jay113355 on 8/30/2020.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    BadgeCaseEvent(net.minecraft.server.level.ServerPlayer player, boolean custom)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.level.ServerPlayer
     
    boolean
    Returns true if this badge case was created by a CustomBadgeCaseScreen action.

    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
  • Constructor Details

    • BadgeCaseEvent

      public BadgeCaseEvent(net.minecraft.server.level.ServerPlayer player, boolean custom)
  • Method Details

    • getPlayer

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

      public boolean isCustom()
      Returns true if this badge case was created by a CustomBadgeCaseScreen action. Otherwise it was a BadgeCase item. Note: This is reported by the client, it is possible the client could be lying, always take proper measures of security.