public class LootContextTypes extends Object
Modifier and Type | Field and Description |
---|---|
static LootContextType |
ADVANCEMENT_ENTITY |
static LootContextType |
ADVANCEMENT_REWARD |
static LootContextType |
BARTER |
static LootContextType |
BLOCK |
static LootContextType |
CHEST |
static LootContextType |
COMMAND |
static LootContextType |
EMPTY |
static LootContextType |
ENTITY |
static LootContextType |
FISHING |
static LootContextType |
GENERIC |
static LootContextType |
GIFT |
private static BiMap<Identifier,LootContextType> |
MAP |
static LootContextType |
SELECTOR |
Constructor and Description |
---|
LootContextTypes() |
Modifier and Type | Method and Description |
---|---|
static LootContextType |
get(Identifier id) |
static Identifier |
getId(LootContextType type) |
private static LootContextType |
register(String name,
Consumer<LootContextType.Builder> type) |
private static final BiMap<Identifier,LootContextType> MAP
public static final LootContextType EMPTY
public static final LootContextType CHEST
public static final LootContextType COMMAND
public static final LootContextType SELECTOR
public static final LootContextType FISHING
public static final LootContextType ENTITY
public static final LootContextType GIFT
public static final LootContextType BARTER
public static final LootContextType ADVANCEMENT_REWARD
public static final LootContextType ADVANCEMENT_ENTITY
public static final LootContextType GENERIC
public static final LootContextType BLOCK
private static LootContextType register(String name, Consumer<LootContextType.Builder> type)
@Nullable public static LootContextType get(Identifier id)
@Nullable public static Identifier getId(LootContextType type)