public abstract class BadgeCaseEvent
extends net.minecraftforge.eventbus.api.Event
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.Modifier and Type | Class and Description |
---|---|
static class |
BadgeCaseEvent.Register |
static class |
BadgeCaseEvent.Remove |
static class |
BadgeCaseEvent.Swap |
Constructor and Description |
---|
BadgeCaseEvent(net.minecraft.entity.player.ServerPlayerEntity player,
boolean custom) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer() |
boolean |
isCustom()
Returns true if this badge case was created by a
CustomBadgeCaseScreen action. |
public BadgeCaseEvent(net.minecraft.entity.player.ServerPlayerEntity player, boolean custom)
public net.minecraft.entity.player.ServerPlayerEntity getPlayer()
public boolean isCustom()
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.