Package at.petrak.hexcasting.forge.loot
Class ForgeHexScrollLootMod
java.lang.Object
net.minecraftforge.common.loot.LootModifier
at.petrak.hexcasting.forge.loot.ForgeHexScrollLootMod
- All Implemented Interfaces:
net.minecraftforge.common.loot.IGlobalLootModifier
public class ForgeHexScrollLootMod
extends net.minecraftforge.common.loot.LootModifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Supplier<com.mojang.serialization.Codec<ForgeHexScrollLootMod>>final intFields inherited from class net.minecraftforge.common.loot.LootModifier
conditionsFields inherited from interface net.minecraftforge.common.loot.IGlobalLootModifier
DIRECT_CODEC, LOOT_CONDITIONS_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionForgeHexScrollLootMod(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, int countRange) -
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) Methods inherited from class net.minecraftforge.common.loot.LootModifier
apply, codecStart
-
Field Details
-
CODEC
-
countRange
public final int countRange
-
-
Constructor Details
-
ForgeHexScrollLootMod
public ForgeHexScrollLootMod(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, int countRange)
-
-
Method Details
-
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
-
codec
public com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier> codec()
-