类 LocationCheck
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.LocationCheck
- 所有已实现的接口:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.world.level.storage.loot.predicates.LootItemCondition
LootItemCondition.Builder
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static LootItemCondition.Builder
checkLocation
(LocationPredicate.Builder pLocationPredicateBuilder) static LootItemCondition.Builder
checkLocation
(LocationPredicate.Builder pLocationPredicateBuilder, BlockPos pOffset) getType()
boolean
test
(LootContext p_81731_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
字段详细资料
-
predicate
-
offset
-
-
构造器详细资料
-
LocationCheck
LocationCheck(LocationPredicate pLocationPredicate, BlockPos pOffset)
-
-
方法详细资料
-
getType
- 指定者:
getType
在接口中LootItemCondition
-
test
- 指定者:
test
在接口中Predicate<LootContext>
-
checkLocation
public static LootItemCondition.Builder checkLocation(LocationPredicate.Builder pLocationPredicateBuilder) -
checkLocation
public static LootItemCondition.Builder checkLocation(LocationPredicate.Builder pLocationPredicateBuilder, BlockPos pOffset)
-