Package net.trique.wardentools.loot
Class ConditionalFabricLootModifier
java.lang.Object
net.trique.wardentools.loot.ConditionalFabricLootModifier
- All Implemented Interfaces:
FabricLootModifier
- Direct Known Subclasses:
AddEnchantedBookToPoolModifier,AddItemModifier,AddItemModifierWithRandomAmount,AddItemToShriekerLootModifier,AddItemToWardenLootModifier
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConditionalFabricLootModifier(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditions, Set<net.minecraft.resources.ResourceLocation> allowedTables) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckConditions(net.minecraft.world.level.storage.loot.LootContext context, net.minecraft.resources.ResourceLocation resourceLocation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.trique.wardentools.loot.FabricLootModifier
doApply
-
Constructor Details
-
ConditionalFabricLootModifier
protected ConditionalFabricLootModifier(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditions, Set<net.minecraft.resources.ResourceLocation> allowedTables)
-
-
Method Details
-
checkConditions
protected boolean checkConditions(net.minecraft.world.level.storage.loot.LootContext context, net.minecraft.resources.ResourceLocation resourceLocation)
-