Class LootModifierInjectItem
java.lang.Object
net.minecraftforge.common.loot.LootModifier
org.cyclops.cyclopscore.loot.modifier.LootModifierInjectItem
- All Implemented Interfaces:
net.minecraftforge.common.loot.IGlobalLootModifier
public class LootModifierInjectItem
extends net.minecraftforge.common.loot.LootModifier
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Supplier<com.mojang.serialization.Codec<LootModifierInjectItem>>
Fields inherited from class net.minecraftforge.common.loot.LootModifier
conditions
Fields inherited from interface net.minecraftforge.common.loot.IGlobalLootModifier
DIRECT_CODEC, LOOT_CONDITIONS_CODEC
-
Constructor Summary
ConstructorDescriptionLootModifierInjectItem
(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.Codec<? extends net.minecraftforge.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.ItemStack
int
Methods inherited from class net.minecraftforge.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:
doApply
in classnet.minecraftforge.common.loot.LootModifier
-
codec
public com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier> codec()
-