Class LootModifierInjectItem
java.lang.Object
net.neoforged.neoforge.common.loot.LootModifier
org.cyclops.cyclopscore.loot.modifier.LootModifierInjectItem
- All Implemented Interfaces:
net.neoforged.neoforge.common.loot.IGlobalLootModifier
public class LootModifierInjectItem
extends net.neoforged.neoforge.common.loot.LootModifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Supplier<com.mojang.serialization.MapCodec<LootModifierInjectItem>> Fields inherited from class net.neoforged.neoforge.common.loot.LootModifier
conditionsFields inherited from interface net.neoforged.neoforge.common.loot.IGlobalLootModifier
CONDITIONAL_CODEC, DIRECT_CODEC, LOOT_CONDITIONS_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionLootModifierInjectItem(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, net.minecraft.world.item.ItemStack itemStack, List<String> lootTables, int maxStackSize) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends net.neoforged.neoforge.common.loot.IGlobalLootModifier> codec()protected @NotNull it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack> doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack> generatedLoot, net.minecraft.world.level.storage.loot.LootContext context) net.minecraft.world.item.ItemStackintMethods inherited from class net.neoforged.neoforge.common.loot.LootModifier
apply, codecStart
-
Field Details
-
CODEC
-
-
Constructor Details
-
LootModifierInjectItem
-
-
Method Details
-
getItemStack
public net.minecraft.world.item.ItemStack getItemStack() -
getLootTables
-
getMaxStackSize
public int getMaxStackSize() -
doApply
@NotNull protected @NotNull it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack> doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<net.minecraft.world.item.ItemStack> generatedLoot, net.minecraft.world.level.storage.loot.LootContext context) - Specified by:
doApplyin classnet.neoforged.neoforge.common.loot.LootModifier
-
codec
public com.mojang.serialization.MapCodec<? extends net.neoforged.neoforge.common.loot.IGlobalLootModifier> codec()
-