Class LocationCheck
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.LocationCheck
- All Implemented Interfaces:
Predicate<LootContext>,LootContextUser,LootItemCondition
-
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 BlockPos(package private) final LocationPredicate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LootItemCondition.BuildercheckLocation(LocationPredicate.Builder p_81726_) static LootItemCondition.BuildercheckLocation(LocationPredicate.Builder p_81728_, BlockPos p_81729_) getType()booleantest(LootContext p_81731_) 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
-
predicate
-
offset
-
-
Constructor Details
-
LocationCheck
LocationCheck(LocationPredicate p_81719_, BlockPos p_81720_)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootItemCondition
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
checkLocation
-
checkLocation
public static LootItemCondition.Builder checkLocation(LocationPredicate.Builder p_81728_, BlockPos p_81729_)
-