Uses of Class
net.minecraft.loot.context.LootContext
Packages that use LootContext
Package
Description
The base package for all Minecraft classes.
-
Uses of LootContext in net.minecraft
Methods in net.minecraft with parameters of type LootContextModifier and TypeMethodDescriptionboolean
class_6405.class_6406.method_37244(LootContext lootContext, List<LootContext> list)
Method parameters in net.minecraft with type arguments of type LootContextModifier and TypeMethodDescriptionboolean
class_6405.class_6406.method_37244(LootContext lootContext, List<LootContext> list)
-
Uses of LootContext in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type LootContextModifier and TypeMethodDescriptionboolean
BredAnimalsCriterion.Conditions.matches(LootContext parentContext, LootContext partnerContext, @Nullable LootContext childContext)
boolean
CuredZombieVillagerCriterion.Conditions.matches(LootContext zombieContext, LootContext villagerContext)
boolean
EffectsChangedCriterion.Conditions.matches(ServerPlayerEntity player, @Nullable LootContext lootContext)
boolean
FishingRodHookedCriterion.Conditions.matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots)
boolean
PlayerHurtEntityCriterion.Conditions.matches(ServerPlayerEntity player, LootContext entityContext, DamageSource source, float dealt, float taken, boolean blocked)
boolean
SummonedEntityCriterion.Conditions.matches(LootContext summonedEntityContext)
boolean
TameAnimalCriterion.Conditions.matches(LootContext tamedEntityContext)
boolean
VillagerTradeCriterion.Conditions.matches(LootContext merchantContext, ItemStack stack)
boolean
OnKilledCriterion.Conditions.test(ServerPlayerEntity player, LootContext killedEntityContext, DamageSource killingBlow)
boolean
PlayerInteractedWithEntityCriterion.Conditions.test(ItemStack stack, LootContext context)
boolean
TargetHitCriterion.Conditions.test(LootContext projectileContext, Vec3d hitPos, int signalStrength)
boolean
ThrownItemPickedUpByEntityCriterion.Conditions.test(ServerPlayerEntity player, ItemStack stack, LootContext entityContext)
Method parameters in net.minecraft.advancement.criterion with type arguments of type LootContextModifier and TypeMethodDescriptionboolean
ChanneledLightningCriterion.Conditions.matches(Collection<? extends LootContext> victims)
boolean
KilledByCrossbowCriterion.Conditions.matches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount)
-
Uses of LootContext in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type LootContextModifier and TypeFieldDescriptionprivate BiFunction<ItemStack,LootContext,ItemStack>
LootTable.combinedFunction
private BiFunction<ItemStack,LootContext,ItemStack>
LootPool.javaFunctions
private Predicate<LootContext>
LootPool.predicate
Methods in net.minecraft.loot with parameters of type LootContextModifier and TypeMethodDescriptionvoid
LootPool.addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
LootChoice.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
LootTable.generateLoot(LootContext context)
void
LootTable.generateLoot(LootContext context, Consumer<ItemStack> lootConsumer)
void
LootTable.generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer)
void
LootTable.supplyInventory(Inventory inventory, LootContext context)
private void
LootPool.supplyOnce(Consumer<ItemStack> lootConsumer, LootContext context)
-
Uses of LootContext in net.minecraft.loot.condition
Fields in net.minecraft.loot.condition with type parameters of type LootContextModifier and TypeFieldDescriptionprivate Predicate<LootContext>
AlternativeLootCondition.predicate
private Predicate<LootContext>
LootConditionManager.AndCondition.predicate
Methods in net.minecraft.loot.condition with parameters of type LootContextModifier and TypeMethodDescriptionprotected boolean
EntityScoresLootCondition.entityScoreIsInRange(LootContext context, Entity entity, Scoreboard scoreboard, String objectiveName, BoundedIntUnaryOperator range)
boolean
AlternativeLootCondition.test(LootContext lootContext)
boolean
BlockStatePropertyLootCondition.test(LootContext lootContext)
boolean
DamageSourcePropertiesLootCondition.test(LootContext lootContext)
boolean
EntityPropertiesLootCondition.test(LootContext lootContext)
boolean
EntityScoresLootCondition.test(LootContext lootContext)
boolean
InvertedLootCondition.test(LootContext lootContext)
boolean
KilledByPlayerLootCondition.test(LootContext lootContext)
boolean
LocationCheckLootCondition.test(LootContext lootContext)
boolean
LootConditionManager.AndCondition.test(LootContext lootContext)
boolean
MatchToolLootCondition.test(LootContext lootContext)
boolean
RandomChanceLootCondition.test(LootContext lootContext)
boolean
RandomChanceWithLootingLootCondition.test(LootContext lootContext)
boolean
ReferenceLootCondition.test(LootContext lootContext)
boolean
SurvivesExplosionLootCondition.test(LootContext lootContext)
boolean
TableBonusLootCondition.test(LootContext lootContext)
boolean
TimeCheckLootCondition.test(LootContext lootContext)
boolean
ValueCheckLootCondition.test(LootContext lootContext)
boolean
WeatherCheckLootCondition.test(LootContext lootContext)
-
Uses of LootContext in net.minecraft.loot.context
Methods in net.minecraft.loot.context that return LootContextMethods in net.minecraft.loot.context with parameters of type LootContextModifier and TypeMethodDescriptionvoid
LootContext.Dropper.add(LootContext context, Consumer<ItemStack> consumer)
-
Uses of LootContext in net.minecraft.loot.entry
Fields in net.minecraft.loot.entry with type parameters of type LootContextModifier and TypeFieldDescription(package private) BiFunction<ItemStack,LootContext,ItemStack>
LeafEntry.compiledFunctions
private Predicate<LootContext>
LootPoolEntry.conditionPredicate
Methods in net.minecraft.loot.entry with parameters of type LootContextModifier and TypeMethodDescriptionboolean
CombinedEntry.expand(LootContext context, Consumer<LootChoice> choiceConsumer)
boolean
EntryCombiner.expand(LootContext context, Consumer<LootChoice> choiceConsumer)
boolean
LeafEntry.expand(LootContext context, Consumer<LootChoice> choiceConsumer)
boolean
TagEntry.expand(LootContext context, Consumer<LootChoice> choiceConsumer)
void
DynamicEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
EmptyEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
ItemEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
protected abstract void
LeafEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
LootTableEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
TagEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
private boolean
TagEntry.grow(LootContext context, Consumer<LootChoice> lootChoiceExpander)
protected boolean
LootPoolEntry.test(LootContext context)
-
Uses of LootContext in net.minecraft.loot.function
Fields in net.minecraft.loot.function with type parameters of type LootContextModifier and TypeFieldDescriptionprivate BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionManager.AndFunction.field_27905
static BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionTypes.NOOP
private Predicate<LootContext>
ConditionalLootFunction.predicate
Methods in net.minecraft.loot.function that return types with arguments of type LootContextModifier and TypeMethodDescriptionstatic BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionTypes.join(BiFunction<ItemStack,LootContext,ItemStack>[] lootFunctions)
Methods in net.minecraft.loot.function with parameters of type LootContextModifier and TypeMethodDescriptionConditionalLootFunction.apply(ItemStack itemStack, LootContext lootContext)
LootFunction.apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
LootFunctionManager.AndFunction.apply(ItemStack itemStack, LootContext lootContext)
static UnaryOperator<Text>
SetNameLootFunction.applySourceEntity(LootContext context, LootContext.EntityTarget sourceEntity)
ApplyBonusLootFunction.process(ItemStack stack, LootContext context)
protected abstract ItemStack
ConditionalLootFunction.process(ItemStack stack, LootContext context)
CopyNameLootFunction.process(ItemStack stack, LootContext context)
CopyNbtLootFunction.process(ItemStack stack, LootContext context)
protected ItemStack
CopyStateFunction.process(ItemStack stack, LootContext context)
EnchantRandomlyLootFunction.process(ItemStack stack, LootContext context)
EnchantWithLevelsLootFunction.process(ItemStack stack, LootContext context)
ExplorationMapLootFunction.process(ItemStack stack, LootContext context)
ExplosionDecayLootFunction.process(ItemStack stack, LootContext context)
FillPlayerHeadLootFunction.process(ItemStack stack, LootContext context)
FurnaceSmeltLootFunction.process(ItemStack stack, LootContext context)
LimitCountLootFunction.process(ItemStack stack, LootContext context)
LootingEnchantLootFunction.process(ItemStack stack, LootContext context)
SetAttributesLootFunction.process(ItemStack stack, LootContext context)
protected ItemStack
SetBannerPatternFunction.process(ItemStack stack, LootContext context)
SetContentsLootFunction.process(ItemStack stack, LootContext context)
SetCountLootFunction.process(ItemStack stack, LootContext context)
SetDamageLootFunction.process(ItemStack stack, LootContext context)
SetEnchantmentsLootFunction.process(ItemStack stack, LootContext context)
SetLootTableLootFunction.process(ItemStack stack, LootContext context)
SetLoreLootFunction.process(ItemStack stack, LootContext context)
SetNameLootFunction.process(ItemStack stack, LootContext context)
SetNbtLootFunction.process(ItemStack stack, LootContext context)
SetStewEffectLootFunction.process(ItemStack stack, LootContext context)
Method parameters in net.minecraft.loot.function with type arguments of type LootContextModifier and TypeMethodDescriptionLootFunction.apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
-
Uses of LootContext in net.minecraft.loot.operator
Methods in net.minecraft.loot.operator with parameters of type LootContextModifier and TypeMethodDescriptionint
BoundedIntUnaryOperator.Applier.apply(LootContext context, int value)
int
BoundedIntUnaryOperator.apply(LootContext context, int value)
boolean
BoundedIntUnaryOperator.test(LootContext context, int value)
boolean
BoundedIntUnaryOperator.Tester.test(LootContext context, int value)
-
Uses of LootContext in net.minecraft.loot.provider.nbt
Methods in net.minecraft.loot.provider.nbt with parameters of type LootContextModifier and TypeMethodDescriptionContextLootNbtProvider.Target.getNbt(LootContext context)
ContextLootNbtProvider.getNbtTag(LootContext context)
LootNbtProvider.getNbtTag(LootContext context)
StorageLootNbtProvider.getNbtTag(LootContext context)
-
Uses of LootContext in net.minecraft.loot.provider.number
Methods in net.minecraft.loot.provider.number with parameters of type LootContextModifier and TypeMethodDescriptionfloat
BinomialLootNumberProvider.nextFloat(LootContext context)
float
ConstantLootNumberProvider.nextFloat(LootContext context)
float
LootNumberProvider.nextFloat(LootContext context)
float
ScoreLootNumberProvider.nextFloat(LootContext context)
float
UniformLootNumberProvider.nextFloat(LootContext context)
int
BinomialLootNumberProvider.nextInt(LootContext context)
default int
LootNumberProvider.nextInt(LootContext context)
int
UniformLootNumberProvider.nextInt(LootContext context)
-
Uses of LootContext in net.minecraft.loot.provider.score
Methods in net.minecraft.loot.provider.score with parameters of type LootContextModifier and TypeMethodDescriptionContextLootScoreProvider.getName(LootContext context)
FixedLootScoreProvider.getName(LootContext context)
LootScoreProvider.getName(LootContext context)
-
Uses of LootContext in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type LootContextModifier and TypeFieldDescriptionprivate Predicate<LootContext>
EntityPredicate.Extended.combinedCondition
Methods in net.minecraft.predicate.entity that return LootContextModifier and TypeMethodDescriptionstatic LootContext
EntityPredicate.createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
Methods in net.minecraft.predicate.entity with parameters of type LootContext -
Uses of LootContext in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type LootContextModifier and TypeMethodDescriptionprivate static int
LootCommand.getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootContext lootContext, LootCommand.Target constructor)