Uses of Record Class
net.minecraft.advancements.AdvancementHolder
Package
Description
Classes for NeoForge's own data generation.
-
Uses of AdvancementHolder in net.minecraft.advancements
Modifier and TypeFieldDescriptionprivate final AdvancementHolder
CriterionTrigger.Listener.advancement
The field for theadvancement
record component.private final AdvancementHolder
AdvancementNode.holder
Modifier and TypeFieldDescriptionstatic final StreamCodec
<RegistryFriendlyByteBuf, List<AdvancementHolder>> AdvancementHolder.LIST_STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, AdvancementHolder> AdvancementHolder.STREAM_CODEC
Modifier and TypeMethodDescriptionCriterionTrigger.Listener.advancement()
Returns the value of theadvancement
record component.Advancement.Builder.build
(ResourceLocation p_138404_) AdvancementNode.holder()
Advancement.Builder.save
(Consumer<AdvancementHolder> p_138390_, String p_138391_) Modifier and TypeMethodDescriptionAdvancementType.createAnnouncement
(AdvancementHolder p_311791_, ServerPlayer p_312517_) AdvancementTree.get
(AdvancementHolder p_301246_) static Component
Advancement.name
(AdvancementHolder p_300875_) Advancement.Builder.parent
(AdvancementHolder p_301226_) private boolean
AdvancementTree.tryInsert
(AdvancementHolder p_301290_) Modifier and TypeMethodDescriptionvoid
AdvancementTree.addAll
(Collection<AdvancementHolder> p_301192_) Advancement.Builder.save
(Consumer<AdvancementHolder> p_138390_, String p_138391_) ModifierConstructorDescriptionAdvancementNode
(AdvancementHolder p_301037_, AdvancementNode p_301236_) Listener
(T trigger, AdvancementHolder advancement, String criterion) Creates an instance of aListener
record class. -
Uses of AdvancementHolder in net.minecraft.client.gui.components.toasts
-
Uses of AdvancementHolder in net.minecraft.client.gui.screens.advancements
Modifier and TypeFieldDescriptionprivate final Map
<AdvancementHolder, AdvancementTab> AdvancementsScreen.tabs
private final Map
<AdvancementHolder, AdvancementWidget> AdvancementTab.widgets
Modifier and TypeMethodDescriptionprivate void
AdvancementTab.addWidget
(AdvancementWidget p_97176_, AdvancementHolder p_301071_) AdvancementTab.getWidget
(AdvancementHolder p_301219_) void
AdvancementsScreen.onSelectedTabChanged
(AdvancementHolder p_301084_) -
Uses of AdvancementHolder in net.minecraft.client.multiplayer
Modifier and TypeFieldDescriptionprivate final Map
<AdvancementHolder, AdvancementProgress> ClientAdvancements.progress
Modifier and TypeMethodDescriptionvoid
ClientAdvancements.Listener.onSelectedTabChanged
(AdvancementHolder p_301171_) void
ClientAdvancements.setSelectedTab
(AdvancementHolder p_301030_, boolean p_104403_) -
Uses of AdvancementHolder in net.minecraft.client.telemetry
Modifier and TypeMethodDescriptionvoid
WorldSessionTelemetryManager.onAdvancementDone
(Level p_286825_, AdvancementHolder p_301169_) -
Uses of AdvancementHolder in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic AdvancementHolder
ResourceLocationArgument.getAdvancement
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106988_, String p_106989_) -
Uses of AdvancementHolder in net.minecraft.data.advancements
Modifier and TypeMethodDescriptionstatic AdvancementHolder
AdvancementSubProvider.createPlaceholder
(String p_314470_) Modifier and TypeMethodDescriptionvoid
AdvancementSubProvider.generate
(HolderLookup.Provider p_255901_, Consumer<AdvancementHolder> p_250888_) -
Uses of AdvancementHolder in net.minecraft.data.advancements.packs
Modifier and TypeMethodDescriptionstatic AdvancementHolder
VanillaHusbandryAdvancements.createBreedAllAnimalsAdvancement
(AdvancementHolder p_300959_, Consumer<AdvancementHolder> p_266923_, Stream<EntityType<?>> p_266961_, Stream<EntityType<?>> p_266751_) static AdvancementHolder
VanillaAdventureAdvancements.createMonsterHunterAdvancement
(AdvancementHolder p_314489_, Consumer<AdvancementHolder> p_314532_, List<EntityType<?>> p_314614_) Modifier and TypeMethodDescriptionprotected static void
VanillaAdventureAdvancements.createAdventuringTime
(HolderLookup.Provider p_330738_, Consumer<AdvancementHolder> p_275645_, AdvancementHolder p_301274_, MultiNoiseBiomeSourceParameterList.Preset p_275211_) static AdvancementHolder
VanillaHusbandryAdvancements.createBreedAllAnimalsAdvancement
(AdvancementHolder p_300959_, Consumer<AdvancementHolder> p_266923_, Stream<EntityType<?>> p_266961_, Stream<EntityType<?>> p_266751_) static AdvancementHolder
VanillaAdventureAdvancements.createMonsterHunterAdvancement
(AdvancementHolder p_314489_, Consumer<AdvancementHolder> p_314532_, List<EntityType<?>> p_314614_) Modifier and TypeMethodDescriptionprotected static void
VanillaAdventureAdvancements.createAdventuringTime
(HolderLookup.Provider p_330738_, Consumer<AdvancementHolder> p_275645_, AdvancementHolder p_301274_, MultiNoiseBiomeSourceParameterList.Preset p_275211_) static AdvancementHolder
VanillaHusbandryAdvancements.createBreedAllAnimalsAdvancement
(AdvancementHolder p_300959_, Consumer<AdvancementHolder> p_266923_, Stream<EntityType<?>> p_266961_, Stream<EntityType<?>> p_266751_) static AdvancementHolder
VanillaAdventureAdvancements.createMonsterHunterAdvancement
(AdvancementHolder p_314489_, Consumer<AdvancementHolder> p_314532_, List<EntityType<?>> p_314614_) void
VanillaAdventureAdvancements.generate
(HolderLookup.Provider p_255887_, Consumer<AdvancementHolder> p_256428_) void
VanillaHusbandryAdvancements.generate
(HolderLookup.Provider p_255680_, Consumer<AdvancementHolder> p_251389_) void
VanillaNetherAdvancements.generate
(HolderLookup.Provider p_256338_, Consumer<AdvancementHolder> p_249760_) void
VanillaStoryAdvancements.generate
(HolderLookup.Provider p_256574_, Consumer<AdvancementHolder> p_248554_) void
VanillaTheEndAdvancements.generate
(HolderLookup.Provider p_256214_, Consumer<AdvancementHolder> p_250851_) -
Uses of AdvancementHolder in net.minecraft.data.recipes
Modifier and TypeMethodDescriptiondefault void
RecipeOutput.accept
(ResourceLocation p_312249_, Recipe<?> p_312328_, AdvancementHolder p_312176_) protected CompletableFuture
<?> RecipeProvider.buildAdvancement
(CachedOutput p_253674_, HolderLookup.Provider p_323646_, AdvancementHolder p_301116_) protected CompletableFuture
<?> RecipeProvider.buildAdvancement
(CachedOutput p_253674_, HolderLookup.Provider p_323646_, AdvancementHolder p_301116_, ICondition... conditions) -
Uses of AdvancementHolder in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final List
<AdvancementHolder> ClientboundUpdateAdvancementsPacket.added
Modifier and TypeMethodDescriptionServerboundSeenAdvancementsPacket.openedTab
(AdvancementHolder p_301294_) ModifierConstructorDescriptionClientboundUpdateAdvancementsPacket
(boolean p_133560_, Collection<AdvancementHolder> p_133561_, Set<ResourceLocation> p_133562_, Map<ResourceLocation, AdvancementProgress> p_133563_) -
Uses of AdvancementHolder in net.minecraft.server
Modifier and TypeFieldDescriptionprivate Map
<ResourceLocation, AdvancementHolder> ServerAdvancementManager.advancements
private final Map
<AdvancementHolder, AdvancementProgress> PlayerAdvancements.progress
private final Set
<AdvancementHolder> PlayerAdvancements.progressChanged
private final Set
<AdvancementHolder> PlayerAdvancements.visible
Modifier and TypeMethodDescriptionboolean
PlayerAdvancements.award
(AdvancementHolder p_300979_, String p_135990_) PlayerAdvancements.getOrStartProgress
(AdvancementHolder p_301185_) private void
PlayerAdvancements.markForVisibilityUpdate
(AdvancementHolder p_301097_) private <T extends CriterionTriggerInstance>
voidPlayerAdvancements.registerListener
(AdvancementHolder p_301059_, String p_300946_, Criterion<T> p_300887_) private void
PlayerAdvancements.registerListeners
(AdvancementHolder p_301053_) private <T extends CriterionTriggerInstance>
voidPlayerAdvancements.removeListener
(AdvancementHolder p_301213_, String p_301253_, Criterion<T> p_301311_) boolean
PlayerAdvancements.revoke
(AdvancementHolder p_301073_, String p_136000_) void
PlayerAdvancements.setSelectedTab
(AdvancementHolder p_301180_) private void
PlayerAdvancements.startProgress
(AdvancementHolder p_300931_, AdvancementProgress p_135987_) private void
PlayerAdvancements.unregisterListeners
(AdvancementHolder p_301082_) Modifier and TypeMethodDescriptionprivate void
PlayerAdvancements.updateTreeVisibility
(AdvancementNode p_301178_, Set<AdvancementHolder> p_265206_, Set<ResourceLocation> p_265593_) -
Uses of AdvancementHolder in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static List
<AdvancementHolder> AdvancementCommands.getAdvancements
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_300960_, AdvancementHolder p_301220_, AdvancementCommands.Mode p_136335_) Modifier and TypeMethodDescriptionprivate static List
<AdvancementHolder> AdvancementCommands.getAdvancements
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_300960_, AdvancementHolder p_301220_, AdvancementCommands.Mode p_136335_) protected abstract boolean
AdvancementCommands.Action.perform
(ServerPlayer p_136384_, AdvancementHolder p_301251_) protected abstract boolean
AdvancementCommands.Action.performCriterion
(ServerPlayer p_136382_, AdvancementHolder p_301120_, String p_301262_) private static int
AdvancementCommands.performCriterion
(CommandSourceStack p_136325_, Collection<ServerPlayer> p_136326_, AdvancementCommands.Action p_136327_, AdvancementHolder p_301324_, String p_136329_) Modifier and TypeMethodDescriptionprivate static void
AdvancementCommands.addChildren
(AdvancementNode p_300871_, List<AdvancementHolder> p_136332_) int
AdvancementCommands.Action.perform
(ServerPlayer p_136380_, Iterable<AdvancementHolder> p_136381_) -
Uses of AdvancementHolder in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionClientCommandSourceStack.getAdvancement
(ResourceLocation id) Returns the advancement from the id from the client side where the advancement needs to be visible to the player. -
Uses of AdvancementHolder in net.neoforged.neoforge.common.crafting
Modifier and TypeMethodDescriptionvoid
ConditionalRecipeOutput.accept
(ResourceLocation id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) -
Uses of AdvancementHolder in net.neoforged.neoforge.common.data
Modifier and TypeMethodDescriptionvoid
AdvancementProvider.AdvancementGenerator.generate
(HolderLookup.Provider registries, Consumer<AdvancementHolder> saver, ExistingFileHelper existingFileHelper) A method used to generate advancements for a mod. -
Uses of AdvancementHolder in net.neoforged.neoforge.common.data.internal
Modifier and TypeMethodDescriptionprotected CompletableFuture
<?> NeoForgeRecipeProvider.buildAdvancement
(CachedOutput p_253674_, HolderLookup.Provider p_323646_, AdvancementHolder p_301116_) private Advancement.Builder
NeoForgeAdvancementProvider.NeoForgeAdvancementGenerator.findAndReplaceInHolder
(AdvancementHolder advancementHolder, HolderLookup.Provider registries) Modifier and TypeMethodDescriptionvoid
NeoForgeAdvancementProvider.NeoForgeAdvancementGenerator.generate
(HolderLookup.Provider registries, Consumer<AdvancementHolder> saver, ExistingFileHelper existingFileHelper) -
Uses of AdvancementHolder in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault AdvancementHolder
ICommandSourceStackExtension.getAdvancement
(ResourceLocation id) default AdvancementHolder
IAdvancementBuilderExtension.save
(Consumer<AdvancementHolder> saver, ResourceLocation id, ExistingFileHelper fileHelper) Saves this builder with the given id using theExistingFileHelper
to check if the parent is already known.Modifier and TypeMethodDescriptionvoid
IRecipeOutputExtension.accept
(ResourceLocation id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) Generates a recipe with the given conditions.Modifier and TypeMethodDescriptiondefault AdvancementHolder
IAdvancementBuilderExtension.save
(Consumer<AdvancementHolder> saver, ResourceLocation id, ExistingFileHelper fileHelper) Saves this builder with the given id using theExistingFileHelper
to check if the parent is already known. -
Uses of AdvancementHolder in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic void
EventHooks.onAdvancementEarnedEvent
(Player player, AdvancementHolder earned) static void
EventHooks.onAdvancementProgressedEvent
(Player player, AdvancementHolder progressed, AdvancementProgress advancementProgress, String criterion, AdvancementEvent.AdvancementProgressEvent.ProgressType progressType) -
Uses of AdvancementHolder in net.neoforged.neoforge.event.entity.player
ModifierConstructorDescriptionAdvancementEarnEvent
(Player player, AdvancementHolder earned) AdvancementEvent
(Player player, AdvancementHolder advancement) AdvancementProgressEvent
(Player player, AdvancementHolder progressed, AdvancementProgress advancementProgress, String criterionName, AdvancementEvent.AdvancementProgressEvent.ProgressType progressType) -
Uses of AdvancementHolder in net.neoforged.neoforge.oldtest
Modifier and TypeMethodDescriptionvoid
DataGeneratorTest.Advancements.generate
(HolderLookup.Provider registries, Consumer<AdvancementHolder> saver, ExistingFileHelper existingFileHelper)