Class LootItemFunctions
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemFunctions
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LootItemFunctionType
<ApplyBonusCount> static final com.mojang.serialization.Codec
<Holder<LootItemFunction>> static final LootItemFunctionType
<CopyComponentsFunction> static final LootItemFunctionType
<CopyCustomDataFunction> static final LootItemFunctionType
<CopyNameFunction> static final LootItemFunctionType
<CopyBlockState> static final LootItemFunctionType
<EnchantRandomlyFunction> static final LootItemFunctionType
<EnchantWithLevelsFunction> static final LootItemFunctionType
<ExplorationMapFunction> static final LootItemFunctionType
<ApplyExplosionDecay> static final LootItemFunctionType
<FillPlayerHead> static final LootItemFunctionType
<FilteredFunction> static final LootItemFunctionType
<SmeltItemFunction> static final BiFunction
<ItemStack, LootContext, ItemStack> static final LootItemFunctionType
<LimitCount> static final LootItemFunctionType
<LootingEnchantFunction> static final LootItemFunctionType
<ModifyContainerContents> static final LootItemFunctionType
<FunctionReference> static final com.mojang.serialization.Codec
<LootItemFunction> static final LootItemFunctionType
<SequenceFunction> static final LootItemFunctionType
<SetAttributesFunction> static final LootItemFunctionType
<SetBannerPatternFunction> static final LootItemFunctionType
<SetBookCoverFunction> static final LootItemFunctionType
<SetComponentsFunction> static final LootItemFunctionType
<SetContainerContents> static final LootItemFunctionType
<SetItemCountFunction> static final LootItemFunctionType
<SetCustomDataFunction> static final LootItemFunctionType
<SetCustomModelDataFunction> static final LootItemFunctionType
<SetItemDamageFunction> static final LootItemFunctionType
<SetEnchantmentsFunction> static final LootItemFunctionType
<SetFireworkExplosionFunction> static final LootItemFunctionType
<SetFireworksFunction> static final LootItemFunctionType
<SetInstrumentFunction> static final LootItemFunctionType
<SetItemFunction> static final LootItemFunctionType
<SetContainerLootTable> static final LootItemFunctionType
<SetLoreFunction> static final LootItemFunctionType
<SetNameFunction> static final LootItemFunctionType
<SetOminousBottleAmplifierFunction> static final LootItemFunctionType
<SetPotionFunction> static final LootItemFunctionType
<SetStewEffectFunction> static final LootItemFunctionType
<SetWritableBookPagesFunction> static final LootItemFunctionType
<SetWrittenBookPagesFunction> static final LootItemFunctionType
<ToggleTooltips> static final com.mojang.serialization.Codec
<LootItemFunction> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BiFunction
<ItemStack, LootContext, ItemStack> compose
(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> p_298840_) private static <T extends LootItemFunction>
LootItemFunctionType<T>
-
Field Details
-
IDENTITY
-
TYPED_CODEC
-
ROOT_CODEC
-
CODEC
-
SET_COUNT
-
SET_ITEM
-
ENCHANT_WITH_LEVELS
-
ENCHANT_RANDOMLY
-
SET_ENCHANTMENTS
-
SET_CUSTOM_DATA
-
SET_COMPONENTS
-
FURNACE_SMELT
-
LOOTING_ENCHANT
-
SET_DAMAGE
-
SET_ATTRIBUTES
-
SET_NAME
-
EXPLORATION_MAP
-
SET_STEW_EFFECT
-
COPY_NAME
-
SET_CONTENTS
-
MODIFY_CONTENTS
-
FILTERED
-
LIMIT_COUNT
-
APPLY_BONUS
-
SET_LOOT_TABLE
-
EXPLOSION_DECAY
-
SET_LORE
-
FILL_PLAYER_HEAD
-
COPY_CUSTOM_DATA
-
COPY_STATE
-
SET_BANNER_PATTERN
-
SET_POTION
-
SET_INSTRUMENT
-
REFERENCE
-
SEQUENCE
-
COPY_COMPONENTS
-
SET_FIREWORKS
-
SET_FIREWORK_EXPLOSION
-
SET_BOOK_COVER
-
SET_WRITTEN_BOOK_PAGES
-
SET_WRITABLE_BOOK_PAGES
-
TOGGLE_TOOLTIPS
-
SET_OMINOUS_BOTTLE_AMPLIFIER
public static final LootItemFunctionType<SetOminousBottleAmplifierFunction> SET_OMINOUS_BOTTLE_AMPLIFIER -
SET_CUSTOM_MODEL_DATA
-
-
Constructor Details
-
LootItemFunctions
public LootItemFunctions()
-
-
Method Details
-
register
private static <T extends LootItemFunction> LootItemFunctionType<T> register(String p_80763_, com.mojang.serialization.MapCodec<T> p_329222_) -
compose
public static BiFunction<ItemStack,LootContext, composeItemStack> (List<? extends BiFunction<ItemStack, LootContext, ItemStack>> p_298840_)
-