Class MobLootModifier
java.lang.Object
net.neoforged.neoforge.common.loot.LootModifier
de.teamlapen.werewolves.world.loot.MobLootModifier
- All Implemented Interfaces:
net.neoforged.neoforge.common.loot.IGlobalLootModifier
@ParametersAreNonnullByDefault
public class MobLootModifier
extends net.neoforged.neoforge.common.loot.LootModifier
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionMobLootModifier(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, net.minecraft.world.level.storage.loot.LootTable lootTable) -
Method Summary
Modifier and TypeMethodDescriptionstatic MobLootModifier.Builderbuilder()@NotNull com.mojang.serialization.Codec<? 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) Methods inherited from class net.neoforged.neoforge.common.loot.LootModifier
apply, codecStart
-
Field Details
-
CODEC
-
-
Constructor Details
-
MobLootModifier
public MobLootModifier(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, net.minecraft.world.level.storage.loot.LootTable lootTable)
-
-
Method Details
-
codec
@NotNull public @NotNull com.mojang.serialization.Codec<? extends net.neoforged.neoforge.common.loot.IGlobalLootModifier> codec() -
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
-
builder
-