Package net.minecraftforge.common.loot
Class CanToolPerformAction
java.lang.Object
net.minecraftforge.common.loot.CanToolPerformAction
- All Implemented Interfaces:
Predicate<LootContext>,LootContextUser,LootItemCondition
This LootItemCondition "forge:can_tool_perform_action" can be used to check if a tool can perform a given ToolAction.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
LootItemCondition.Builder -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ToolActionstatic final LootItemConditionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LootItemCondition.BuildercanToolPerformAction(ToolAction action) @NotNull Set<LootContextParam<?>>@NotNull LootItemConditionTypegetType()booleantest(LootContext lootContext) 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
validate
-
Field Details
-
LOOT_CONDITION_TYPE
-
action
-
-
Constructor Details
-
CanToolPerformAction
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootItemCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParamsin interfaceLootContextUser
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
canToolPerformAction
-