net.minecraft.loot.function

public class LootFunctionTypes

net.minecraft.world.level.storage.loot.functions.LootItemFunctions
net.minecraft.class_131
net.minecraft.loot.function.LootFunctionTypes

Field summary

Modifier and TypeField
public static final BiFunction<ItemStack, LootContext, ItemStack>
IDENTITY
field_1102
NOOP
public static final com.mojang.serialization.Codec<LootFunction>
TYPED_CODEC
field_45831
BASE_CODEC
public static final com.mojang.serialization.Codec<LootFunction>
ROOT_CODEC
field_50023
CODEC
public static final com.mojang.serialization.Codec<RegistryEntry<LootFunction>>
CODEC
field_45832
ENTRY_CODEC
public static final LootFunctionType<SetCountLootFunction>
SET_COUNT
field_25214
SET_COUNT
public static final LootFunctionType<SetItemLootFunction>
SET_ITEM
field_51426
SET_ITEM
public static final LootFunctionType<EnchantWithLevelsLootFunction>
ENCHANT_WITH_LEVELS
field_25215
ENCHANT_WITH_LEVELS
public static final LootFunctionType<EnchantRandomlyLootFunction>
ENCHANT_RANDOMLY
field_25216
ENCHANT_RANDOMLY
public static final LootFunctionType<SetEnchantmentsLootFunction>
SET_ENCHANTMENTS
field_27906
SET_ENCHANTMENTS
public static final LootFunctionType<SetCustomDataLootFunction>
SET_CUSTOM_DATA
field_49441
SET_CUSTOM_DATA
public static final LootFunctionType<SetComponentsLootFunction>
SET_COMPONENTS
field_49442
SET_COMPONENTS
public static final LootFunctionType<FurnaceSmeltLootFunction>
FURNACE_SMELT
field_25218
FURNACE_SMELT
public static final LootFunctionType<EnchantedCountIncreaseLootFunction>
ENCHANTED_COUNT_INCREASE
field_51800
ENCHANTED_COUNT_INCREASE
public static final LootFunctionType<SetDamageLootFunction>
SET_DAMAGE
field_25220
SET_DAMAGE
public static final LootFunctionType<SetAttributesLootFunction>
SET_ATTRIBUTES
field_25221
SET_ATTRIBUTES
public static final LootFunctionType<SetNameLootFunction>
SET_NAME
field_25222
SET_NAME
public static final LootFunctionType<ExplorationMapLootFunction>
EXPLORATION_MAP
field_25223
EXPLORATION_MAP
public static final LootFunctionType<SetStewEffectLootFunction>
SET_STEW_EFFECT
field_25224
SET_STEW_EFFECT
public static final LootFunctionType<CopyNameLootFunction>
COPY_NAME
field_25225
COPY_NAME
public static final LootFunctionType<SetContentsLootFunction>
SET_CONTENTS
field_25226
SET_CONTENTS
public static final LootFunctionType<ModifyContentsLootFunction>
MODIFY_CONTENTS
field_51427
MODIFY_CONTENTS
public static final LootFunctionType<FilteredLootFunction>
FILTERED
field_51428
FILTERED
public static final LootFunctionType<LimitCountLootFunction>
LIMIT_COUNT
field_25227
LIMIT_COUNT
public static final LootFunctionType<ApplyBonusLootFunction>
APPLY_BONUS
field_25228
APPLY_BONUS
public static final LootFunctionType<SetLootTableLootFunction>
SET_LOOT_TABLE
field_25229
SET_LOOT_TABLE
public static final LootFunctionType<ExplosionDecayLootFunction>
EXPLOSION_DECAY
field_25230
EXPLOSION_DECAY
public static final LootFunctionType<SetLoreLootFunction>
SET_LORE
field_25231
SET_LORE
public static final LootFunctionType<FillPlayerHeadLootFunction>
FILL_PLAYER_HEAD
field_25232
FILL_PLAYER_HEAD
public static final LootFunctionType<CopyNbtLootFunction>
COPY_CUSTOM_DATA
field_49443
COPY_CUSTOM_DATA
public static final LootFunctionType<CopyStateLootFunction>
COPY_STATE
field_25234
COPY_STATE
public static final LootFunctionType<SetBannerPatternLootFunction>
SET_BANNER_PATTERN
field_27342
SET_BANNER_PATTERN
public static final LootFunctionType<SetPotionLootFunction>
SET_POTION
field_35079
SET_POTION
public static final LootFunctionType<SetInstrumentLootFunction>
SET_INSTRUMENT
field_39060
SET_INSTRUMENT
public static final LootFunctionType<ReferenceLootFunction>
REFERENCE
field_44508
REFERENCE
public static final LootFunctionType<AndLootFunction>
SEQUENCE
field_45830
SEQUENCE
public static final LootFunctionType<CopyComponentsLootFunction>
COPY_COMPONENTS
field_49440
COPY_COMPONENTS
public static final LootFunctionType<SetFireworksLootFunction>
SET_FIREWORKS
field_49865
SET_FIREWORKS
public static final LootFunctionType<SetFireworkExplosionLootFunction>
SET_FIREWORK_EXPLOSION
field_49866
SET_FIREWORK_EXPLOSION
public static final LootFunctionType<SetBookCoverLootFunction>
SET_BOOK_COVER
field_49867
SET_BOOK_COVER
public static final LootFunctionType<SetWrittenBookPagesLootFunction>
SET_WRITTEN_BOOK_PAGES
field_49868
SET_WRITTEN_BOOK_PAGES
public static final LootFunctionType<SetWritableBookPagesLootFunction>
SET_WRITABLE_BOOK_PAGES
field_49869
SET_WRITABLE_BOOK_PAGES
public static final LootFunctionType<ToggleTooltipsLootFunction>
TOGGLE_TOOLTIPS
field_50022
TOGGLE_TOOLTIPS
public static final LootFunctionType<SetOminousBottleAmplifierLootFunction>
SET_OMINOUS_BOTTLE_AMPLIFIER
field_50207
SET_OMINOUS_BOTTLE_AMPLIFIER
public static final LootFunctionType<SetCustomModelDataLootFunction>
SET_CUSTOM_MODEL_DATA
field_51425
SET_CUSTOM_MODEL_DATA
public static final LootFunctionType<DiscardLootFunction>
DISCARD
field_63971
DISCARD

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private static <T extends LootFunction> LootFunctionType<T>
register(String name, com.mojang.serialization.MapCodec<T> codec)
method_29323(String arg0, com.mojang.serialization.MapCodec<T> arg1)
register(String id, com.mojang.serialization.MapCodec<T> codec)
public static BiFunction<ItemStack, LootContext, ItemStack>
compose(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> functions)
method_594(List<? extends BiFunction<class_1799, class_47, class_1799>> arg0)
join(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> terms)
private static ItemStack
lambda$compose$3(List arg0, ItemStack arg1, LootContext arg2)
method_53347(List arg0, class_1799 arg1, class_47 arg2)
method_53347(List arg0, ItemStack stack, LootContext context)
private static ItemStack
lambda$compose$2(BiFunction arg0, BiFunction arg1, ItemStack arg2, LootContext arg3)
method_591(BiFunction arg0, BiFunction arg1, class_1799 arg2, class_47 arg3)
method_591(BiFunction arg0, BiFunction arg1, ItemStack stack, LootContext context)
private static com.mojang.serialization.Codec
lambda$static$1()
method_53346()
method_53346()
private static ItemStack
lambda$static$0(ItemStack arg0, LootContext arg1)
method_592(class_1799 arg0, class_47 arg1)
method_592(ItemStack stack, LootContext context)