Class MobLootModifier
java.lang.Object
net.minecraftforge.common.loot.LootModifier
de.teamlapen.werewolves.world.loot.MobLootModifier
- All Implemented Interfaces:
net.minecraftforge.common.loot.IGlobalLootModifier
@ParametersAreNonnullByDefault
public class MobLootModifier
extends net.minecraftforge.common.loot.LootModifier
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class net.minecraftforge.common.loot.LootModifier
conditionsFields inherited from interface net.minecraftforge.common.loot.IGlobalLootModifier
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()com.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) Methods inherited from class net.minecraftforge.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
public com.mojang.serialization.Codec<? extends net.minecraftforge.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.minecraftforge.common.loot.LootModifier
-
builder
-