Uses of Class
net.minecraft.predicate.entity.LootContextPredicate
Package
Description
-
Uses of LootContextPredicate in net.minecraft.advancement.criterion
Modifier and TypeFieldDescriptionprivate final Optional<LootContextPredicate>
LightningStrikeCriterion.Conditions.bystander
The field for thebystander
record component.private final Optional<LootContextPredicate>
BredAnimalsCriterion.Conditions.child
The field for thechild
record component.private final Optional<LootContextPredicate>
FishingRodHookedCriterion.Conditions.entity
The field for theentity
record component.private final Optional<LootContextPredicate>
OnKilledCriterion.Conditions.entity
The field for theentity
record component.private final Optional<LootContextPredicate>
PlayerHurtEntityCriterion.Conditions.entity
The field for theentity
record component.private final Optional<LootContextPredicate>
PlayerInteractedWithEntityCriterion.Conditions.entity
The field for theentity
record component.private final Optional<LootContextPredicate>
SummonedEntityCriterion.Conditions.entity
The field for theentity
record component.private final Optional<LootContextPredicate>
TameAnimalCriterion.Conditions.entity
The field for theentity
record component.private final Optional<LootContextPredicate>
ThrownItemPickedUpByEntityCriterion.Conditions.entity
The field for theentity
record component.private final Optional<LootContextPredicate>
LightningStrikeCriterion.Conditions.lightning
The field for thelightning
record component.private final Optional<LootContextPredicate>
ItemCriterion.Conditions.location
The field for thelocation
record component.private final Optional<LootContextPredicate>
BredAnimalsCriterion.Conditions.parent
The field for theparent
record component.private final Optional<LootContextPredicate>
BredAnimalsCriterion.Conditions.partner
The field for thepartner
record component.private final Optional<LootContextPredicate>
BeeNestDestroyedCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
BredAnimalsCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
BrewedPotionCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
ChangedDimensionCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
ChanneledLightningCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
ConstructBeaconCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
ConsumeItemCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
CuredZombieVillagerCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
EffectsChangedCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
EnchantedItemCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
EnterBlockCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
EntityHurtPlayerCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
FilledBucketCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
FishingRodHookedCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
InventoryChangedCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
ItemCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
ItemDurabilityChangedCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
KilledByCrossbowCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
LevitationCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
LightningStrikeCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
OnKilledCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
PlayerGeneratesContainerLootCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
PlayerHurtEntityCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
PlayerInteractedWithEntityCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
RecipeCraftedCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
RecipeUnlockedCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
ShotCrossbowCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
SlideDownBlockCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
StartedRidingCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
SummonedEntityCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
TameAnimalCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
TargetHitCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
ThrownItemPickedUpByEntityCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
TickCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
TravelCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
UsedEnderEyeCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
UsedTotemCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
UsingItemCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
VillagerTradeCriterion.Conditions.player
The field for theplayer
record component.private final Optional<LootContextPredicate>
TargetHitCriterion.Conditions.projectile
The field for theprojectile
record component.private final Optional<LootContextPredicate>
EffectsChangedCriterion.Conditions.source
The field for thesource
record component.private final List<LootContextPredicate>
ChanneledLightningCriterion.Conditions.victims
The field for thevictims
record component.private final List<LootContextPredicate>
KilledByCrossbowCriterion.Conditions.victims
The field for thevictims
record component.private final Optional<LootContextPredicate>
CuredZombieVillagerCriterion.Conditions.villager
The field for thevillager
record component.private final Optional<LootContextPredicate>
VillagerTradeCriterion.Conditions.villager
The field for thevillager
record component.private final Optional<LootContextPredicate>
CuredZombieVillagerCriterion.Conditions.zombie
The field for thezombie
record component.Modifier and TypeMethodDescriptionLightningStrikeCriterion.Conditions.bystander()
Returns the value of thebystander
record component.BredAnimalsCriterion.Conditions.child()
Returns the value of thechild
record component.FishingRodHookedCriterion.Conditions.entity()
Returns the value of theentity
record component.OnKilledCriterion.Conditions.entity()
Returns the value of theentity
record component.PlayerHurtEntityCriterion.Conditions.entity()
Returns the value of theentity
record component.PlayerInteractedWithEntityCriterion.Conditions.entity()
Returns the value of theentity
record component.SummonedEntityCriterion.Conditions.entity()
Returns the value of theentity
record component.TameAnimalCriterion.Conditions.entity()
Returns the value of theentity
record component.ThrownItemPickedUpByEntityCriterion.Conditions.entity()
Returns the value of theentity
record component.LightningStrikeCriterion.Conditions.lightning()
Returns the value of thelightning
record component.ItemCriterion.Conditions.location()
Returns the value of thelocation
record component.BredAnimalsCriterion.Conditions.parent()
Returns the value of theparent
record component.BredAnimalsCriterion.Conditions.partner()
Returns the value of thepartner
record component.AbstractCriterion.Conditions.player()
BeeNestDestroyedCriterion.Conditions.player()
BredAnimalsCriterion.Conditions.player()
BrewedPotionCriterion.Conditions.player()
ChangedDimensionCriterion.Conditions.player()
ChanneledLightningCriterion.Conditions.player()
ConstructBeaconCriterion.Conditions.player()
ConsumeItemCriterion.Conditions.player()
CuredZombieVillagerCriterion.Conditions.player()
EffectsChangedCriterion.Conditions.player()
EnchantedItemCriterion.Conditions.player()
EnterBlockCriterion.Conditions.player()
EntityHurtPlayerCriterion.Conditions.player()
FilledBucketCriterion.Conditions.player()
FishingRodHookedCriterion.Conditions.player()
InventoryChangedCriterion.Conditions.player()
ItemCriterion.Conditions.player()
ItemDurabilityChangedCriterion.Conditions.player()
KilledByCrossbowCriterion.Conditions.player()
LevitationCriterion.Conditions.player()
LightningStrikeCriterion.Conditions.player()
OnKilledCriterion.Conditions.player()
PlayerGeneratesContainerLootCriterion.Conditions.player()
PlayerHurtEntityCriterion.Conditions.player()
PlayerInteractedWithEntityCriterion.Conditions.player()
RecipeCraftedCriterion.Conditions.player()
RecipeUnlockedCriterion.Conditions.player()
ShotCrossbowCriterion.Conditions.player()
SlideDownBlockCriterion.Conditions.player()
StartedRidingCriterion.Conditions.player()
SummonedEntityCriterion.Conditions.player()
TameAnimalCriterion.Conditions.player()
TargetHitCriterion.Conditions.player()
ThrownItemPickedUpByEntityCriterion.Conditions.player()
TickCriterion.Conditions.player()
TravelCriterion.Conditions.player()
UsedEnderEyeCriterion.Conditions.player()
UsedTotemCriterion.Conditions.player()
UsingItemCriterion.Conditions.player()
VillagerTradeCriterion.Conditions.player()
TargetHitCriterion.Conditions.projectile()
Returns the value of theprojectile
record component.EffectsChangedCriterion.Conditions.source()
Returns the value of thesource
record component.ChanneledLightningCriterion.Conditions.victims()
Returns the value of thevictims
record component.KilledByCrossbowCriterion.Conditions.victims()
Returns the value of thevictims
record component.CuredZombieVillagerCriterion.Conditions.villager()
Returns the value of thevillager
record component.VillagerTradeCriterion.Conditions.villager()
Returns the value of thevillager
record component.CuredZombieVillagerCriterion.Conditions.zombie()
Returns the value of thezombie
record component.Modifier and TypeMethodDescriptionThrownItemPickedUpByEntityCriterion.Conditions.createThrownItemPickedUpByEntity
(LootContextPredicate player, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) Modifier and TypeMethodDescriptionItemDurabilityChangedCriterion.Conditions.create
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange durability) PlayerInteractedWithEntityCriterion.Conditions.create
(Optional<LootContextPredicate> playerPredicate, ItemPredicate.Builder item, Optional<LootContextPredicate> entity) PlayerInteractedWithEntityCriterion.Conditions.create
(ItemPredicate.Builder item, Optional<LootContextPredicate> entity) TargetHitCriterion.Conditions.create
(NumberRange.IntRange signalStrength, Optional<LootContextPredicate> projectile) ThrownItemPickedUpByEntityCriterion.Conditions.createThrownItemPickedUpByPlayer
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) private static boolean
BredAnimalsCriterion.Conditions.parentMatches
(Optional<LootContextPredicate> parent, LootContext parentContext) ModifierConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<RegistryEntry<Block>> optional, Optional<ItemPredicate> item, NumberRange.IntRange beeCount) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> parentPredicate, Optional<LootContextPredicate> partnerPredicate, Optional<LootContextPredicate> childPredicate) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<RegistryEntry<Potion>> optional) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<RegistryKey<World>> optional, Optional<RegistryKey<World>> optional2) Conditions
(Optional<LootContextPredicate> playerPredicate, List<LootContextPredicate> victims) Conditions
(Optional<LootContextPredicate> playerPredicate, List<LootContextPredicate> victims) Conditions
(Optional<LootContextPredicate> playerPredicate, NumberRange.IntRange level) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> zombie, Optional<LootContextPredicate> villager) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<EntityEffectPredicate> effects, Optional<LootContextPredicate> source) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange levels) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<RegistryEntry<Block>> optional, Optional<StatePredicate> state) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<DamagePredicate> damage) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> rod, Optional<LootContextPredicate> hookedEntity, Optional<ItemPredicate> caughtItem) Conditions
(Optional<LootContextPredicate> playerPredicate, InventoryChangedCriterion.Conditions.Slots slots, List<ItemPredicate> list) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> location) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange durability, NumberRange.IntRange delta) Conditions
(Optional<LootContextPredicate> playerPredicate, List<LootContextPredicate> victims, NumberRange.IntRange uniqueEntityTypes) Conditions
(Optional<LootContextPredicate> playerPredicate, List<LootContextPredicate> victims, NumberRange.IntRange uniqueEntityTypes) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<DistancePredicate> distance, NumberRange.IntRange duration) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> lightning, Optional<LootContextPredicate> bystander) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> entity, Optional<DamageSourcePredicate> killingBlow) Conditions
(Optional<LootContextPredicate> playerPredicate, Identifier lootTable) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<DamagePredicate> damage, Optional<LootContextPredicate> entity) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) Conditions
(Optional<LootContextPredicate> playerPredicate, Identifier recipeId, List<ItemPredicate> ingredients) Conditions
(Optional<LootContextPredicate> playerPredicate, Identifier recipe) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<RegistryEntry<Block>> optional, Optional<StatePredicate> state) Conditions
(Optional<LootContextPredicate> optional) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> entity) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> entity) Conditions
(Optional<LootContextPredicate> playerPredicate, NumberRange.IntRange signalStrength, Optional<LootContextPredicate> projectile) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) Conditions
(Optional<LootContextPredicate> optional) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<LocationPredicate> startPos, Optional<DistancePredicate> distance) Conditions
(Optional<LootContextPredicate> playerPredicate, NumberRange.DoubleRange distance) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item) Conditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> villager, Optional<ItemPredicate> item) -
Uses of LootContextPredicate in net.minecraft.data.server.advancement.vanilla
Modifier and TypeFieldDescriptionprivate static final LootContextPredicate
VanillaNetherTabAdvancementGenerator.PIGLIN_DISTRACTION_PREDICATE
-
Uses of LootContextPredicate in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LootContextPredicate>
LootContextPredicate.CODEC
static final com.mojang.serialization.Codec<LootContextPredicate>
EntityPredicate.LOOT_CONTEXT_PREDICATE_CODEC
Modifier and TypeMethodDescriptionstatic LootContextPredicate
EntityPredicate.asLootContextPredicate
(EntityPredicate predicate) static LootContextPredicate
EntityPredicate.contextPredicateFromEntityPredicate
(EntityPredicate.Builder builder) static LootContextPredicate
LootContextPredicate.create
(LootCondition[] conditions) Modifier and TypeMethodDescriptionstatic Optional<LootContextPredicate>
EntityPredicate.contextPredicateFromEntityPredicate
(Optional<EntityPredicate> entityPredicate) static List<LootContextPredicate>
EntityPredicate.contextPredicateFromEntityPredicates
(EntityPredicate.Builder[] builders) Modifier and TypeMethodDescriptionvoid
LootContextPredicateValidator.validate
(LootContextPredicate predicate, LootContextType type, String path) void
LootContextPredicateValidator.validateEntityPredicate
(LootContextPredicate predicate, String path) Modifier and TypeMethodDescriptionvoid
LootContextPredicateValidator.validate
(List<LootContextPredicate> predicates, LootContextType type, String path) void
LootContextPredicateValidator.validateEntityPredicate
(Optional<LootContextPredicate> predicate, String path) void
LootContextPredicateValidator.validateEntityPredicates
(List<LootContextPredicate> predicates, String path)