Package com.petrolpark.contamination
Class ContaminateGlobalLootModifier
java.lang.Object
net.minecraftforge.common.loot.LootModifier
com.petrolpark.contamination.ContaminateGlobalLootModifier
- All Implemented Interfaces:
net.minecraftforge.common.loot.IGlobalLootModifier
public class ContaminateGlobalLootModifier
extends net.minecraftforge.common.loot.LootModifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.world.level.storage.loot.providers.number.NumberProviderstatic final com.mojang.serialization.Codec<ContaminateGlobalLootModifier>protected ContaminantFields inherited from class net.minecraftforge.common.loot.LootModifier
conditionsFields inherited from interface net.minecraftforge.common.loot.IGlobalLootModifier
DIRECT_CODEC, LOOT_CONDITIONS_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContaminateGlobalLootModifier(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, net.minecraft.resources.ResourceLocation contaminantLocation, net.minecraft.world.level.storage.loot.providers.number.NumberProvider chanceProvider) -
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.level.storage.loot.providers.number.NumberProviderMethods inherited from class net.minecraftforge.common.loot.LootModifier
apply, codecStart
-
Field Details
-
CODEC
-
contaminant
-
chanceProvider
protected final net.minecraft.world.level.storage.loot.providers.number.NumberProvider chanceProvider
-
-
Constructor Details
-
ContaminateGlobalLootModifier
protected ContaminateGlobalLootModifier(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn, net.minecraft.resources.ResourceLocation contaminantLocation, net.minecraft.world.level.storage.loot.providers.number.NumberProvider chanceProvider)
-
-
Method Details
-
getChanceProvider
public net.minecraft.world.level.storage.loot.providers.number.NumberProvider getChanceProvider() -
getContaminant
-
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
-