Package at.petrak.hexcasting.forge.loot
Class ForgeHexLoreLootMod
java.lang.Object
net.minecraftforge.common.loot.LootModifier
at.petrak.hexcasting.forge.loot.ForgeHexLoreLootMod
- All Implemented Interfaces:
net.minecraftforge.common.loot.IGlobalLootModifier
public class ForgeHexLoreLootMod
extends net.minecraftforge.common.loot.LootModifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublestatic final Supplier<com.mojang.serialization.Codec<ForgeHexLoreLootMod>>Fields inherited from class net.minecraftforge.common.loot.LootModifier
conditionsFields inherited from interface net.minecraftforge.common.loot.IGlobalLootModifier
DIRECT_CODEC, LOOT_CONDITIONS_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionForgeHexLoreLootMod(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, double chance) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<ForgeHexLoreLootMod>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
-
chance
public final double chance
-
-
Constructor Details
-
ForgeHexLoreLootMod
public ForgeHexLoreLootMod(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, double chance)
-
-
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
-