public class BossTierRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.gson.Gson |
GSON |
static BossTier |
NOT_BOSS |
Constructor and Description |
---|
BossTierRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
addNotBossIfNotPresent() |
static java.util.Optional<BossTier> |
getBossTier(java.lang.String id) |
static BossTier |
getBossTierOrNotBoss(java.lang.String id) |
static java.util.List<BossTier> |
getBossTiers() |
static BossTier |
getBossTierUnsafe(java.lang.String id) |
static BossTier |
getRandomBossTier() |
static BossTier |
getRandomSpawnableBossTier() |
static BossTier |
getRandomSpawnableMegaBossTier() |
static void |
readFromBuffer(net.minecraft.network.PacketBuffer buf) |
static void |
readFromJson(com.google.gson.Gson gson,
com.google.gson.JsonElement json) |
static void |
registerBossTier(BossTier bossTier) |
static void |
reset() |
static void |
writeToBuffer(net.minecraft.network.PacketBuffer buf) |
public static final com.google.gson.Gson GSON
public static BossTier NOT_BOSS
public static void registerBossTier(BossTier bossTier)
public static void addNotBossIfNotPresent()
public static java.util.Optional<BossTier> getBossTier(java.lang.String id)
public static BossTier getBossTierUnsafe(java.lang.String id)
public static BossTier getBossTierOrNotBoss(java.lang.String id)
public static java.util.List<BossTier> getBossTiers()
public static BossTier getRandomBossTier()
public static BossTier getRandomSpawnableBossTier()
public static BossTier getRandomSpawnableMegaBossTier()
public static void reset()
public static void readFromJson(com.google.gson.Gson gson, com.google.gson.JsonElement json)
public static void writeToBuffer(net.minecraft.network.PacketBuffer buf)
public static void readFromBuffer(net.minecraft.network.PacketBuffer buf)