Uses of Class
net.minecraft.loot.context.LootContext
Package
Description
The base package for all Minecraft classes.
-
Uses of LootContext in net.minecraft
Modifier and TypeMethodDescriptionboolean
class_6405.class_6406.method_37244(LootContext lootContext, List<LootContext> list)
Modifier and TypeMethodDescriptionboolean
class_6405.class_6406.method_37244(LootContext lootContext, List<LootContext> list)
-
Uses of LootContext in net.minecraft.advancement.criterion
Modifier 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)
Modifier 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
Modifier and TypeFieldDescriptionprivate BiFunction<ItemStack,LootContext,ItemStack>
LootTable.combinedFunction
private BiFunction<ItemStack,LootContext,ItemStack>
LootPool.javaFunctions
private Predicate<LootContext>
LootPool.predicate
Modifier 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
Modifier and TypeFieldDescriptionprivate Predicate<LootContext>
AlternativeLootCondition.predicate
private Predicate<LootContext>
LootConditionManager.AndCondition.predicate
Modifier 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
Modifier and TypeMethodDescriptionvoid
LootContext.Dropper.add(LootContext context, Consumer<ItemStack> consumer)
-
Uses of LootContext in net.minecraft.loot.entry
Modifier and TypeFieldDescription(package private) BiFunction<ItemStack,LootContext,ItemStack>
LeafEntry.compiledFunctions
private Predicate<LootContext>
LootPoolEntry.conditionPredicate
Modifier 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
Modifier and TypeFieldDescriptionprivate BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionManager.AndFunction.field_27905
static BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionTypes.NOOP
private Predicate<LootContext>
ConditionalLootFunction.predicate
Modifier and TypeMethodDescriptionstatic BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionTypes.join(BiFunction<ItemStack,LootContext,ItemStack>[] lootFunctions)
Modifier 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)
Modifier and TypeMethodDescriptionLootFunction.apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
-
Uses of LootContext in net.minecraft.loot.operator
Modifier 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
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionContextLootScoreProvider.getName(LootContext context)
FixedLootScoreProvider.getName(LootContext context)
LootScoreProvider.getName(LootContext context)
-
Uses of LootContext in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionprivate Predicate<LootContext>
EntityPredicate.Extended.combinedCondition
Modifier and TypeMethodDescriptionstatic LootContext
EntityPredicate.createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
-
Uses of LootContext in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
LootCommand.getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootContext lootContext, LootCommand.Target constructor)