public class EntityScoresLootCondition extends Object implements LootCondition
Modifier and Type | Class and Description |
---|---|
static class |
EntityScoresLootCondition.Serializer |
LootCondition.Builder
Modifier and Type | Field and Description |
---|---|
private Map<String,UniformLootTableRange> |
scores |
private LootContext.EntityTarget |
target |
Modifier | Constructor and Description |
---|---|
private |
EntityScoresLootCondition(Map<String,UniformLootTableRange> scores,
LootContext.EntityTarget target) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
entityScoreIsInRange(Entity entity,
Scoreboard scoreboard,
String objective,
UniformLootTableRange scoreRange) |
Set<LootContextParameter<?>> |
getRequiredParameters() |
LootConditionType |
getType() |
boolean |
test(LootContext lootContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
private final Map<String,UniformLootTableRange> scores
private final LootContext.EntityTarget target
private EntityScoresLootCondition(Map<String,UniformLootTableRange> scores, LootContext.EntityTarget target)
public LootConditionType getType()
getType
in interface LootCondition
public Set<LootContextParameter<?>> getRequiredParameters()
getRequiredParameters
in interface LootContextAware
public boolean test(LootContext lootContext)
test
in interface Predicate<LootContext>
protected boolean entityScoreIsInRange(Entity entity, Scoreboard scoreboard, String objective, UniformLootTableRange scoreRange)