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.CODECMethods in net.minecraft.world.level.storage.loot that return LootContext.EntityTargetModifier and TypeMethodDescriptionstatic LootContext.EntityTargetstatic LootContext.EntityTargetReturns 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.EntityTargetFillPlayerHead.entityTargetFields in net.minecraft.world.level.storage.loot.functions with type parameters of type LootContext.EntityTargetModifier and TypeFieldDescriptionprivate Optional<LootContext.EntityTarget> SetLoreFunction.Builder.resolutionContextprivate final Optional<LootContext.EntityTarget> SetLoreFunction.resolutionContextprivate final Optional<LootContext.EntityTarget> SetNameFunction.resolutionContextMethods in net.minecraft.world.level.storage.loot.functions with parameters of type LootContext.EntityTargetModifier and TypeMethodDescriptionCopyCustomDataFunction.copyData(LootContext.EntityTarget target) static UnaryOperator<Component> SetNameFunction.createResolver(LootContext lootContext, LootContext.EntityTarget resolutionContext) Create a UnaryOperator that resolves Components based on the given LootContext and EntityTarget.static LootItemConditionalFunction.Builder<?> FillPlayerHead.fillPlayerHead(LootContext.EntityTarget entityTarget) static LootItemConditionalFunction.Builder<?> SetNameFunction.setName(Component name, SetNameFunction.Target target, LootContext.EntityTarget resolutionContext) SetLoreFunction.Builder.setResolutionContext(LootContext.EntityTarget resolutionContext) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type LootContext.EntityTargetModifierConstructorDescriptionFillPlayerHead(List<LootItemCondition> conditions, LootContext.EntityTarget entityTarget) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootContext.EntityTargetModifierConstructorDescriptionSetLoreFunction(List<LootItemCondition> conditions, List<Component> lore, ListOperation mode, Optional<LootContext.EntityTarget> resolutionContext) -
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.EntityTargetEntityHasScoreCondition.Builder.entityTargetprivate final LootContext.EntityTargetEntityHasScoreCondition.entityTargetThe field for theentityTargetrecord component.private final LootContext.EntityTargetLootItemEntityPropertyCondition.entityTargetThe field for theentityTargetrecord component.Methods in net.minecraft.world.level.storage.loot.predicates that return LootContext.EntityTargetModifier and TypeMethodDescriptionEntityHasScoreCondition.entityTarget()Returns the value of theentityTargetrecord component.LootItemEntityPropertyCondition.entityTarget()Returns the value of theentityTargetrecord component.Methods in net.minecraft.world.level.storage.loot.predicates with parameters of type LootContext.EntityTargetModifier and TypeMethodDescriptionstatic LootItemCondition.BuilderLootItemEntityPropertyCondition.entityPresent(LootContext.EntityTarget target) static LootItemCondition.BuilderLootItemEntityPropertyCondition.hasProperties(LootContext.EntityTarget target, EntityPredicate entityPredicate) static LootItemCondition.BuilderLootItemEntityPropertyCondition.hasProperties(LootContext.EntityTarget target, EntityPredicate.Builder predicateBuilder) EntityHasScoreCondition.hasScores(LootContext.EntityTarget entityTarget) Constructors in net.minecraft.world.level.storage.loot.predicates with parameters of type LootContext.EntityTargetModifierConstructorDescriptionBuilder(LootContext.EntityTarget entityTarget) EntityHasScoreCondition(Map<String, IntRange> scores, LootContext.EntityTarget entityTarget) Creates an instance of aEntityHasScoreConditionrecord class.LootItemEntityPropertyCondition(Optional<EntityPredicate> predicate, LootContext.EntityTarget entityTarget) Creates an instance of aLootItemEntityPropertyConditionrecord 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 NbtProviderContextNbtProvider.forContextEntity(LootContext.EntityTarget entityTarget) private static ContextNbtProvider.GetterContextNbtProvider.forEntity(LootContext.EntityTarget entityTarget) -
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 ScoreboardValueScoreboardValue.fromScoreboard(LootContext.EntityTarget entityTarget, String score) static ScoreboardValueScoreboardValue.fromScoreboard(LootContext.EntityTarget entityTarget, String score, float scale) -
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.EntityTargetContextScoreboardNameProvider.targetThe field for thetargetrecord component.Methods in net.minecraft.world.level.storage.loot.providers.score that return LootContext.EntityTargetModifier and TypeMethodDescriptionContextScoreboardNameProvider.target()Returns the value of thetargetrecord component.Methods in net.minecraft.world.level.storage.loot.providers.score with parameters of type LootContext.EntityTargetModifier and TypeMethodDescriptionstatic ScoreboardNameProviderContextScoreboardNameProvider.forTarget(LootContext.EntityTarget target) Constructors in net.minecraft.world.level.storage.loot.providers.score with parameters of type LootContext.EntityTargetModifierConstructorDescriptionCreates an instance of aContextScoreboardNameProviderrecord class.