Uses of Class
net.minecraft.loot.context.LootContext
-
Uses of LootContext in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type LootContext Modifier and Type Method Description boolean
BredAnimalsCriterion.Conditions. matches(LootContext parentContext, LootContext partnerContext, @Nullable LootContext childContext)
boolean
CuredZombieVillagerCriterion.Conditions. matches(LootContext zombieContext, LootContext villagerContext)
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 LootContext Modifier and Type Method Description boolean
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 LootContext Modifier and Type Field Description private 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 LootContext Modifier and Type Method Description void
LootPool. addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
LootChoice. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
List<ItemStack>
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 LootContext Modifier and Type Field Description private Predicate<LootContext>
AlternativeLootCondition. predicate
private Predicate<LootContext>
LootConditionManager.AndCondition. predicate
Methods in net.minecraft.loot.condition with parameters of type LootContext Modifier and Type Method Description protected 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 LootContext Modifier and Type Method Description LootContext
LootContext.Builder. build(LootContextType type)
Methods in net.minecraft.loot.context with parameters of type LootContext Modifier and Type Method Description void
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 LootContext Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>
LeafEntry. compiledFunctions
private Predicate<LootContext>
LootPoolEntry. conditionPredicate
Methods in net.minecraft.loot.entry with parameters of type LootContext Modifier and Type Method Description boolean
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 LootContext Modifier and Type Field Description private 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 LootContext Modifier and Type Method Description static BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionTypes. join(BiFunction<ItemStack,LootContext,ItemStack>[] lootFunctions)
Methods in net.minecraft.loot.function with parameters of type LootContext Modifier and Type Method Description ItemStack
ConditionalLootFunction. apply(ItemStack itemStack, LootContext lootContext)
static Consumer<ItemStack>
LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
ItemStack
LootFunctionManager.AndFunction. apply(ItemStack itemStack, LootContext lootContext)
static UnaryOperator<Text>
SetNameLootFunction. applySourceEntity(LootContext context, LootContext.EntityTarget sourceEntity)
ItemStack
ApplyBonusLootFunction. process(ItemStack stack, LootContext context)
protected abstract ItemStack
ConditionalLootFunction. process(ItemStack stack, LootContext context)
ItemStack
CopyNameLootFunction. process(ItemStack stack, LootContext context)
ItemStack
CopyNbtLootFunction. process(ItemStack stack, LootContext context)
protected ItemStack
CopyStateFunction. process(ItemStack stack, LootContext context)
ItemStack
EnchantRandomlyLootFunction. process(ItemStack stack, LootContext context)
ItemStack
EnchantWithLevelsLootFunction. process(ItemStack stack, LootContext context)
ItemStack
ExplorationMapLootFunction. process(ItemStack stack, LootContext context)
ItemStack
ExplosionDecayLootFunction. process(ItemStack stack, LootContext context)
ItemStack
FillPlayerHeadLootFunction. process(ItemStack stack, LootContext context)
ItemStack
FurnaceSmeltLootFunction. process(ItemStack stack, LootContext context)
ItemStack
LimitCountLootFunction. process(ItemStack stack, LootContext context)
ItemStack
LootingEnchantLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetAttributesLootFunction. process(ItemStack stack, LootContext context)
protected ItemStack
SetBannerPatternFunction. process(ItemStack stack, LootContext context)
ItemStack
SetContentsLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetCountLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetDamageLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetEnchantmentsLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetLootTableLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetLoreLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetNameLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetNbtLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetStewEffectLootFunction. process(ItemStack stack, LootContext context)
Method parameters in net.minecraft.loot.function with type arguments of type LootContext Modifier and Type Method Description static Consumer<ItemStack>
LootFunction. 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 LootContext Modifier and Type Method Description int
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 LootContext Modifier and Type Method Description @Nullable NbtElement
ContextLootNbtProvider.Target. getNbt(LootContext context)
@Nullable NbtElement
ContextLootNbtProvider. getNbtTag(LootContext context)
@Nullable NbtElement
LootNbtProvider. getNbtTag(LootContext context)
@Nullable NbtElement
StorageLootNbtProvider. getNbtTag(LootContext context)
-
Uses of LootContext in net.minecraft.loot.provider.number
Methods in net.minecraft.loot.provider.number with parameters of type LootContext Modifier and Type Method Description float
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 LootContext Modifier and Type Method Description @Nullable String
ContextLootScoreProvider. getName(LootContext context)
@Nullable String
FixedLootScoreProvider. getName(LootContext context)
@Nullable String
LootScoreProvider. getName(LootContext context)
-
Uses of LootContext in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type LootContext Modifier and Type Field Description private Predicate<LootContext>
EntityPredicate.Extended. combinedCondition
Methods in net.minecraft.predicate.entity that return LootContext Modifier and Type Method Description static LootContext
EntityPredicate. createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
Methods in net.minecraft.predicate.entity with parameters of type LootContext Modifier and Type Method Description boolean
EntityPredicate.Extended. test(LootContext context)
-
Uses of LootContext in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type LootContext Modifier and Type Method Description private static int
LootCommand. getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootContext lootContext, LootCommand.Target constructor)