Package net.minecraft.loot.conditions
Class LocationCheck
- java.lang.Object
-
- net.minecraft.loot.conditions.LocationCheck
-
- All Implemented Interfaces:
java.util.function.Predicate<LootContext>
,ILootCondition
,IParameterized
public class LocationCheck extends java.lang.Object implements ILootCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocationCheck.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private BlockPos
offset
private LocationPredicate
predicate
-
Constructor Summary
Constructors Modifier Constructor Description private
LocationCheck(LocationPredicate p_i225895_1_, BlockPos p_i225895_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ILootCondition.IBuilder
checkLocation(LocationPredicate.Builder p_215975_0_)
static ILootCondition.IBuilder
checkLocation(LocationPredicate.Builder p_241547_0_, BlockPos p_241547_1_)
LootConditionType
getType()
boolean
test(LootContext p_test_1_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.loot.IParameterized
getReferencedContextParams, validate
-
-
-
-
Field Detail
-
predicate
private final LocationPredicate predicate
-
offset
private final BlockPos offset
-
-
Constructor Detail
-
LocationCheck
private LocationCheck(LocationPredicate p_i225895_1_, BlockPos p_i225895_2_)
-
-
Method Detail
-
getType
public LootConditionType getType()
- Specified by:
getType
in interfaceILootCondition
-
test
public boolean test(LootContext p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<LootContext>
-
checkLocation
public static ILootCondition.IBuilder checkLocation(LocationPredicate.Builder p_215975_0_)
-
checkLocation
public static ILootCondition.IBuilder checkLocation(LocationPredicate.Builder p_241547_0_, BlockPos p_241547_1_)
-
-