public class LocationCheckLootCondition extends Object implements LootCondition
Modifier and Type | Class and Description |
---|---|
static class |
LocationCheckLootCondition.Factory |
LootCondition.Builder
Modifier and Type | Field and Description |
---|---|
private BlockPos |
offset |
private LocationPredicate |
predicate |
Constructor and Description |
---|
LocationCheckLootCondition(LocationPredicate predicate,
BlockPos offset) |
Modifier and Type | Method and Description |
---|---|
static LootCondition.Builder |
builder(LocationPredicate.Builder predicateBuilder) |
boolean |
test(LootContext lootContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
check, getRequiredParameters
private final LocationPredicate predicate
private final BlockPos offset
public LocationCheckLootCondition(LocationPredicate predicate, BlockPos offset)
public boolean test(LootContext lootContext)
test
in interface Predicate<LootContext>
public static LootCondition.Builder builder(LocationPredicate.Builder predicateBuilder)