Package net.minecraft.loot.condition
Class EntityScoresLootCondition
java.lang.Object
net.minecraft.loot.condition.EntityScoresLootCondition
- All Implemented Interfaces:
Predicate<LootContext>,LootCondition,LootContextAware
public class EntityScoresLootCondition extends Object implements LootCondition
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityScoresLootCondition.SerializerNested classes/interfaces inherited from interface net.minecraft.loot.condition.LootCondition
LootCondition.Builder -
Field Summary
Fields Modifier and Type Field Description private Map<String,BoundedIntUnaryOperator>scoresprivate LootContext.EntityTargettarget -
Constructor Summary
Constructors Modifier Constructor Description privateEntityScoresLootCondition(Map<String,BoundedIntUnaryOperator> scores, LootContext.EntityTarget target) -
Method Summary
Modifier and Type Method Description protected booleanentityScoreIsInRange(LootContext lootContext, Entity entity, Scoreboard scoreboard, String string, BoundedIntUnaryOperator boundedIntUnaryOperator)Set<LootContextParameter<?>>getRequiredParameters()LootConditionTypegetType()booleantest(LootContext lootContext)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.loot.context.LootContextAware
validate
-
Field Details
-
scores
-
target
-
-
Constructor Details
-
EntityScoresLootCondition
private EntityScoresLootCondition(Map<String,BoundedIntUnaryOperator> scores, LootContext.EntityTarget target)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootCondition
-
getRequiredParameters
- Specified by:
getRequiredParametersin interfaceLootContextAware
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
entityScoreIsInRange
protected boolean entityScoreIsInRange(LootContext lootContext, Entity entity, Scoreboard scoreboard, String string, BoundedIntUnaryOperator boundedIntUnaryOperator)
-