类 CanItemPerformAbility
java.lang.Object
net.neoforged.neoforge.common.loot.CanItemPerformAbility
- 所有已实现的接口:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
This LootItemCondition "neoforge:can_item_perform_ability" can be used to check if an item can perform a given ItemAbility.
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.world.level.storage.loot.predicates.LootItemCondition
LootItemCondition.Builder
-
字段概要
字段修饰符和类型字段说明(专用程序包) final ItemAbility
static com.mojang.serialization.MapCodec
<CanItemPerformAbility> static final LootItemConditionType
从接口继承的字段 net.minecraft.world.level.storage.loot.predicates.LootItemCondition
DIRECT_CODEC, TYPED_CODEC
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static LootItemCondition.Builder
canItemPerformAbility
(ItemAbility action) Set
<ContextKey<?>> getType()
boolean
test
(LootContext lootContext) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.storage.loot.LootContextUser
validate
-
字段详细资料
-
CODEC
-
LOOT_CONDITION_TYPE
-
ability
-
-
构造器详细资料
-
CanItemPerformAbility
-
-
方法详细资料
-
getType
- 指定者:
getType
在接口中LootItemCondition
-
getReferencedContextParams
- 指定者:
getReferencedContextParams
在接口中LootContextUser
-
test
- 指定者:
test
在接口中Predicate<LootContext>
-
canItemPerformAbility
-