Class LootConditionMatchWrench
java.lang.Object
org.cyclops.integrateddynamics.loot.conditions.LootConditionMatchWrench
- All Implemented Interfaces:
Predicate<net.minecraft.world.level.storage.loot.LootContext>
,net.minecraft.world.level.storage.loot.LootContextUser
,net.minecraft.world.level.storage.loot.predicates.LootItemCondition
public class LootConditionMatchWrench
extends Object
implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
A loot condition testing if a wrench is used.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.world.level.storage.loot.predicates.LootItemConditionType
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
validate
-
Field Details
-
TYPE
public static final net.minecraft.world.level.storage.loot.predicates.LootItemConditionType TYPE
-
-
Constructor Details
-
LootConditionMatchWrench
public LootConditionMatchWrench()
-
-
Method Details
-
test
public boolean test(net.minecraft.world.level.storage.loot.LootContext lootContext) -
getReferencedContextParams
public Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>> getReferencedContextParams()- Specified by:
getReferencedContextParams
in interfacenet.minecraft.world.level.storage.loot.LootContextUser
-
getType
public net.minecraft.world.level.storage.loot.predicates.LootItemConditionType getType()- Specified by:
getType
in interfacenet.minecraft.world.level.storage.loot.predicates.LootItemCondition
-
load
public static void load()
-