Uses of Enum Class
net.minecraft.world.level.storage.loot.LootContext.EntityTarget
Packages that use LootContext.EntityTarget
Package
Description
-
Uses of LootContext.EntityTarget in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type LootContext.EntityTargetModifier and TypeFieldDescriptionstatic final StringRepresentable.EnumCodec
<LootContext.EntityTarget> LootContext.EntityTarget.CODEC
Methods in net.minecraft.world.level.storage.loot that return LootContext.EntityTargetModifier and TypeMethodDescriptionstatic LootContext.EntityTarget
static LootContext.EntityTarget
Returns the enum constant of this class with the specified name.static LootContext.EntityTarget[]
LootContext.EntityTarget.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of LootContext.EntityTarget in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as LootContext.EntityTargetModifier and TypeFieldDescriptionprivate final LootContext.EntityTarget
FillPlayerHead.entityTarget
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type LootContext.EntityTargetModifier and TypeFieldDescriptionprivate Optional
<LootContext.EntityTarget> SetLoreFunction.Builder.resolutionContext
private final Optional
<LootContext.EntityTarget> SetLoreFunction.resolutionContext
private final Optional
<LootContext.EntityTarget> SetNameFunction.resolutionContext
Methods in net.minecraft.world.level.storage.loot.functions with parameters of type LootContext.EntityTargetModifier and TypeMethodDescriptionCopyCustomDataFunction.copyData
(LootContext.EntityTarget pTarget) static UnaryOperator
<Component> SetNameFunction.createResolver
(LootContext pLootContext, LootContext.EntityTarget pResolutionContext) Create a UnaryOperator that resolves Components based on the given LootContext and EntityTarget.static LootItemConditionalFunction.Builder
<?> FillPlayerHead.fillPlayerHead
(LootContext.EntityTarget pEntityTarget) static LootItemConditionalFunction.Builder
<?> SetNameFunction.setName
(Component pName, SetNameFunction.Target pTarget, LootContext.EntityTarget pResolutionContext) SetLoreFunction.Builder.setResolutionContext
(LootContext.EntityTarget pResolutionContext) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type LootContext.EntityTargetModifierConstructorDescriptionFillPlayerHead
(List<LootItemCondition> p_298265_, LootContext.EntityTarget p_80605_) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootContext.EntityTargetModifierConstructorDescriptionSetLoreFunction
(List<LootItemCondition> p_81085_, List<Component> p_298633_, ListOperation p_335651_, Optional<LootContext.EntityTarget> p_298623_) -
Uses of LootContext.EntityTarget in net.minecraft.world.level.storage.loot.predicates
Fields in net.minecraft.world.level.storage.loot.predicates declared as LootContext.EntityTargetModifier and TypeFieldDescriptionprivate final LootContext.EntityTarget
EntityHasScoreCondition.Builder.entityTarget
private final LootContext.EntityTarget
EntityHasScoreCondition.entityTarget
The field for theentityTarget
record component.private final LootContext.EntityTarget
LootItemEntityPropertyCondition.entityTarget
The field for theentityTarget
record component.Methods in net.minecraft.world.level.storage.loot.predicates that return LootContext.EntityTargetModifier and TypeMethodDescriptionEntityHasScoreCondition.entityTarget()
Returns the value of theentityTarget
record component.LootItemEntityPropertyCondition.entityTarget()
Returns the value of theentityTarget
record component.Methods in net.minecraft.world.level.storage.loot.predicates with parameters of type LootContext.EntityTargetModifier and TypeMethodDescriptionstatic LootItemCondition.Builder
LootItemEntityPropertyCondition.entityPresent
(LootContext.EntityTarget pTarget) static LootItemCondition.Builder
LootItemEntityPropertyCondition.hasProperties
(LootContext.EntityTarget pTarget, EntityPredicate pEntityPredicate) static LootItemCondition.Builder
LootItemEntityPropertyCondition.hasProperties
(LootContext.EntityTarget pTarget, EntityPredicate.Builder pPredicateBuilder) EntityHasScoreCondition.hasScores
(LootContext.EntityTarget pEntityTarget) Constructors in net.minecraft.world.level.storage.loot.predicates with parameters of type LootContext.EntityTargetModifierConstructorDescriptionBuilder
(LootContext.EntityTarget pEntityTarget) EntityHasScoreCondition
(Map<String, IntRange> scores, LootContext.EntityTarget entityTarget) Creates an instance of aEntityHasScoreCondition
record class.LootItemEntityPropertyCondition
(Optional<EntityPredicate> predicate, LootContext.EntityTarget entityTarget) Creates an instance of aLootItemEntityPropertyCondition
record class. -
Uses of LootContext.EntityTarget in net.minecraft.world.level.storage.loot.providers.nbt
Methods in net.minecraft.world.level.storage.loot.providers.nbt with parameters of type LootContext.EntityTargetModifier and TypeMethodDescriptionstatic NbtProvider
ContextNbtProvider.forContextEntity
(LootContext.EntityTarget pEntityTarget) private static ContextNbtProvider.Getter
ContextNbtProvider.forEntity
(LootContext.EntityTarget pEntityTarget) -
Uses of LootContext.EntityTarget in net.minecraft.world.level.storage.loot.providers.number
Methods in net.minecraft.world.level.storage.loot.providers.number with parameters of type LootContext.EntityTargetModifier and TypeMethodDescriptionstatic ScoreboardValue
ScoreboardValue.fromScoreboard
(LootContext.EntityTarget pEntityTarget, String pScore) static ScoreboardValue
ScoreboardValue.fromScoreboard
(LootContext.EntityTarget pEntityTarget, String pScore, float pScale) -
Uses of LootContext.EntityTarget in net.minecraft.world.level.storage.loot.providers.score
Fields in net.minecraft.world.level.storage.loot.providers.score declared as LootContext.EntityTargetModifier and TypeFieldDescriptionprivate final LootContext.EntityTarget
ContextScoreboardNameProvider.target
The field for thetarget
record component.Methods in net.minecraft.world.level.storage.loot.providers.score that return LootContext.EntityTargetModifier and TypeMethodDescriptionContextScoreboardNameProvider.target()
Returns the value of thetarget
record component.Methods in net.minecraft.world.level.storage.loot.providers.score with parameters of type LootContext.EntityTargetModifier and TypeMethodDescriptionstatic ScoreboardNameProvider
ContextScoreboardNameProvider.forTarget
(LootContext.EntityTarget pTarget) Constructors in net.minecraft.world.level.storage.loot.providers.score with parameters of type LootContext.EntityTargetModifierConstructorDescriptionCreates an instance of aContextScoreboardNameProvider
record class.