net.minecraft.loot.context

public class LootContextTypes

net.minecraft.world.level.storage.loot.parameters.LootContextParamSets
net.minecraft.world.level.storage.loot.parameters.LootContextParamSets
net.minecraft.class_173
net.minecraft.loot.context.LootContextTypes

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<ContextType>
CODEC
CODEC
field_45856
CODEC
public static final ContextType
EMPTY
EMPTY
field_1175
EMPTY
public static final ContextType
ALL_PARAMS
ALL_PARAMS
field_1177
GENERIC
public static final ContextType
CHEST
CHEST
field_1179
CHEST
public static final ContextType
COMMAND
COMMAND
field_20761
COMMAND
public static final ContextType
COMMAND_SLOT_SOURCE
COMMAND_SLOT_SOURCE
field_1_7905
COMMAND_SLOT_SOURCE
public static final ContextType
COMMAND_COMPUTE_DEFAULT
COMMAND_COMPUTE_DEFAULT
field_1_10333
COMMAND_COMPUTE_DEFAULT
public static final ContextType
COMMAND_COMPUTE_POSITION
COMMAND_COMPUTE_POSITION
field_1_10335
COMMAND_COMPUTE_POSITION
public static final ContextType
COMMAND_COMPUTE_ENTITY
COMMAND_COMPUTE_ENTITY
field_1_10334
COMMAND_COMPUTE_ENTITY
public static final ContextType
SELECTOR
SELECTOR
field_20762
SELECTOR
public static final ContextType
VILLAGER_TRADE
VILLAGER_TRADE
field_1_814
VILLAGER_TRADE
public static final ContextType
FISHING
FISHING
field_1176
FISHING
public static final ContextType
ENTITY
ENTITY
field_1173
ENTITY
public static final ContextType
EQUIPMENT
EQUIPMENT
field_50217
EQUIPMENT
public static final ContextType
ARCHAEOLOGY
ARCHAEOLOGY
field_42858
ARCHAEOLOGY
public static final ContextType
GIFT
GIFT
field_16235
GIFT
public static final ContextType
PIGLIN_BARTER
PIGLIN_BARTER
field_22403
BARTER
public static final ContextType
VAULT
VAULT
field_48928
VAULT
public static final ContextType
ADVANCEMENT_REWARD
ADVANCEMENT_REWARD
field_1174
ADVANCEMENT_REWARD
public static final ContextType
ADVANCEMENT_ENTITY
ADVANCEMENT_ENTITY
field_24423
ADVANCEMENT_ENTITY
public static final ContextType
ADVANCEMENT_LOCATION
ADVANCEMENT_LOCATION
field_44788
ADVANCEMENT_LOCATION
public static final ContextType
BLOCK_USE
BLOCK_USE
field_48381
BLOCK_USE
public static final ContextType
BLOCK
BLOCK
field_1172
BLOCK
public static final ContextType
SHEARING
SHEARING
field_49446
SHEARING
public static final ContextType
ENTITY_INTERACT
ENTITY_INTERACT
field_61497
ENTITY_INTERACT
public static final ContextType
BLOCK_INTERACT
BLOCK_INTERACT
field_61498
BLOCK_INTERACT
public static final ContextType
CONTAINER_PROCESS
CONTAINER_PROCESS
field_1_9297
CONTAINER_PROCESS
public static final ContextType
ENCHANTED_DAMAGE
ENCHANTED_DAMAGE
field_51801
ENCHANTED_DAMAGE
public static final ContextType
ENCHANTED_ITEM
ENCHANTED_ITEM
field_51802
ENCHANTED_ITEM
public static final ContextType
ENCHANTED_LOCATION
ENCHANTED_LOCATION
field_51803
ENCHANTED_LOCATION
public static final ContextType
ENCHANTED_ENTITY
ENCHANTED_ENTITY
field_51804
ENCHANTED_ENTITY
public static final ContextType
HIT_BLOCK
HIT_BLOCK
field_52067
HIT_BLOCK

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private static ContextType
register(String name, Consumer<ContextKeySet$Builder> consumer)
register(String name, Consumer<ContextKeySet$Builder> consumer)
method_759(String arg0, Consumer<class_176$class_177> arg1)
register(String name, Consumer<ContextType$Builder> type)
private static ContextType
register(Consumer<ContextKeySet$Builder> consumer, ResourceKey<ContextKeySet> key)
register(Consumer<ContextKeySet$Builder> consumer, ResourceKey<ContextKeySet> key)
method_1_10478(Consumer<class_176$class_177> arg0, class_5321<class_176> arg1)
register(Consumer<ContextType$Builder> type, RegistryKey<ContextType> key)
public static ContextType
bootstrap(Registry<ContextKeySet> registry)
bootstrap(Registry<ContextKeySet> registry)
method_1_10476(class_2378<class_176> arg0)
registerAndGetDefault(Registry<ContextType> registry)
public static void
validate()
validate()
method_1_10479()
assertGenericContainsAllParams()