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