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
Modifier and TypeClassDescriptionstatic 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
ConstructorDescriptionBadgeCaseEvent
(net.minecraft.server.level.ServerPlayer player, boolean custom) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerPlayer
boolean
isCustom()
Returns true if this badge case was created by aCustomBadgeCaseScreen
action.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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 aCustomBadgeCaseScreen
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.
-