Uses of Enum Class
net.minecraft.loot.context.LootContext.EntityTarget
Package
Description
-
Uses of LootContext.EntityTarget in net.minecraft.loot.condition
Modifier and TypeFieldDescriptionprivate final LootContext.EntityTarget
EntityPropertiesLootCondition.entity
The field for theentity
record component.private final LootContext.EntityTarget
EntityScoresLootCondition.entity
The field for theentity
record component.private final LootContext.EntityTarget
EntityScoresLootCondition.Builder.target
Modifier and TypeMethodDescriptionEntityPropertiesLootCondition.entity()
Returns the value of theentity
record component.EntityScoresLootCondition.entity()
Returns the value of theentity
record component.Modifier and TypeMethodDescriptionstatic LootCondition.Builder
EntityPropertiesLootCondition.builder
(LootContext.EntityTarget entity, EntityPredicate predicate) static LootCondition.Builder
EntityPropertiesLootCondition.builder
(LootContext.EntityTarget entity, EntityPredicate.Builder predicateBuilder) static LootCondition.Builder
EntityPropertiesLootCondition.create
(LootContext.EntityTarget entity) EntityScoresLootCondition.create
(LootContext.EntityTarget target) ModifierConstructorDescriptionBuilder
(LootContext.EntityTarget target) EntityPropertiesLootCondition
(Optional<EntityPredicate> optional, LootContext.EntityTarget entity) EntityScoresLootCondition
(Map<String, BoundedIntUnaryOperator> scores, LootContext.EntityTarget target) -
Uses of LootContext.EntityTarget in net.minecraft.loot.context
Modifier and TypeFieldDescriptionstatic final StringIdentifiable.EnumCodec
<LootContext.EntityTarget> LootContext.EntityTarget.CODEC
Modifier and TypeMethodDescriptionstatic LootContext.EntityTarget
LootContext.EntityTarget.fromString
(String type) 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.loot.function
Modifier and TypeFieldDescriptionprivate final LootContext.EntityTarget
FillPlayerHeadLootFunction.entity
Modifier and TypeFieldDescriptionprivate final Optional
<LootContext.EntityTarget> SetLoreLootFunction.entity
private final Optional
<LootContext.EntityTarget> SetNameLootFunction.entity
private Optional
<LootContext.EntityTarget> SetLoreLootFunction.Builder.target
Modifier and TypeMethodDescriptionstatic UnaryOperator
<Text> SetNameLootFunction.applySourceEntity
(LootContext context, LootContext.EntityTarget sourceEntity) static CopyNbtLootFunction.Builder
CopyNbtLootFunction.builder
(LootContext.EntityTarget target) static ConditionalLootFunction.Builder
<?> FillPlayerHeadLootFunction.builder
(LootContext.EntityTarget target) static ConditionalLootFunction.Builder
<?> SetNameLootFunction.builder
(Text name, SetNameLootFunction.Target target, LootContext.EntityTarget entity) SetLoreLootFunction.Builder.target
(LootContext.EntityTarget target) ModifierConstructorDescriptionFillPlayerHeadLootFunction
(List<LootCondition> conditions, LootContext.EntityTarget entity) ModifierConstructorDescriptionSetLoreLootFunction
(List<LootCondition> conditions, List<Text> lore, ListOperation operation, Optional<LootContext.EntityTarget> entity) -
Uses of LootContext.EntityTarget in net.minecraft.loot.provider.nbt
Modifier and TypeMethodDescriptionstatic LootNbtProvider
ContextLootNbtProvider.fromTarget
(LootContext.EntityTarget target) private static ContextLootNbtProvider.Target
ContextLootNbtProvider.getTarget
(LootContext.EntityTarget entityTarget) -
Uses of LootContext.EntityTarget in net.minecraft.loot.provider.number
Modifier and TypeMethodDescriptionstatic ScoreLootNumberProvider
ScoreLootNumberProvider.create
(LootContext.EntityTarget target, String score) static ScoreLootNumberProvider
ScoreLootNumberProvider.create
(LootContext.EntityTarget target, String score, float scale) -
Uses of LootContext.EntityTarget in net.minecraft.loot.provider.score
Modifier and TypeFieldDescriptionprivate final LootContext.EntityTarget
ContextLootScoreProvider.target
The field for thetarget
record component.Modifier and TypeMethodDescriptionContextLootScoreProvider.target()
Returns the value of thetarget
record component.Modifier and TypeMethodDescriptionstatic LootScoreProvider
ContextLootScoreProvider.create
(LootContext.EntityTarget target) ModifierConstructorDescriptionCreates an instance of aContextLootScoreProvider
record class.