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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<LootConditionMatchWrench> static final net.minecraft.world.level.storage.loot.predicates.LootItemConditionTypeFields inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
DIRECT_CODEC, TYPED_CODEC -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Field Details
-
CODEC
-
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) -
getType
public net.minecraft.world.level.storage.loot.predicates.LootItemConditionType getType()- Specified by:
getTypein interfacenet.minecraft.world.level.storage.loot.predicates.LootItemCondition
-