From 030bdb8c8314ccbe3df4f8fb14bdf41341628ad7 Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Sun, 10 Mar 2024 17:03:46 +0900 Subject: [PATCH] Fix broken javadoc links --- .../fabricmc/fabric/api/attachment/v1/AttachmentTarget.java | 2 +- .../api/datagen/v1/provider/FabricLanguageProvider.java | 6 +++--- .../fabric/api/itemgroup/v1/FabricItemGroupEntries.java | 4 ++-- .../networking/v1/ClientConfigurationConnectionEvents.java | 4 ++-- .../client/networking/v1/ClientPlayConnectionEvents.java | 4 ++-- .../api/networking/v1/ServerPlayConnectionEvents.java | 4 ++-- .../fabric/api/client/rendering/v1/WorldRenderContext.java | 2 +- .../fabric/api/client/rendering/v1/WorldRenderEvents.java | 5 +++-- 8 files changed, 16 insertions(+), 15 deletions(-) diff --git a/fabric-data-attachment-api-v1/src/main/java/net/fabricmc/fabric/api/attachment/v1/AttachmentTarget.java b/fabric-data-attachment-api-v1/src/main/java/net/fabricmc/fabric/api/attachment/v1/AttachmentTarget.java index 77dda86d7a..df21a3904d 100644 --- a/fabric-data-attachment-api-v1/src/main/java/net/fabricmc/fabric/api/attachment/v1/AttachmentTarget.java +++ b/fabric-data-attachment-api-v1/src/main/java/net/fabricmc/fabric/api/attachment/v1/AttachmentTarget.java @@ -51,7 +51,7 @@ *

* Note about {@link BlockEntity} targets: by default, many block entities use their NBT to synchronize with the client. * That would mean persistent attachments are automatically synced with the client for those block entities. As this is - * undesirable behavior, the API completely removes attachments from the result of {@link BlockEntity#toInitialChunkDataNbt()}, + * undesirable behavior, the API completely removes attachments from the result of {@link BlockEntity#toInitialChunkDataNbt}, * which takes care of all vanilla types. However, modded block entities may be coded differently, so be wary of this * when attaching data to modded block entities. *

diff --git a/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java b/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java index 1a82706d65..dff21b0619 100644 --- a/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java +++ b/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java @@ -52,8 +52,8 @@ import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; /** - * Extend this class and implement {@link FabricLanguageProvider#generateTranslations(TranslationBuilder)}. - * Make sure to use {@link FabricLanguageProvider#FabricLanguageProvider(FabricDataOutput, String, CompletableFuture)} FabricLanguageProvider} to declare what language code is being generated if it isn't {@code en_us}. + * Extend this class and implement {@link FabricLanguageProvider#generateTranslations}. + * Make sure to use {@link FabricLanguageProvider#FabricLanguageProvider(FabricDataOutput, String, CompletableFuture) FabricLanguageProvider} to declare what language code is being generated if it isn't {@code en_us}. * *

Register an instance of the class with {@link FabricDataGenerator.Pack#addProvider} in a {@link net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint}. */ @@ -117,7 +117,7 @@ public String getName() { } /** - * A consumer used by {@link FabricLanguageProvider#generateTranslations(TranslationBuilder)}. + * A consumer used by {@link FabricLanguageProvider#generateTranslations}. */ @ApiStatus.NonExtendable @FunctionalInterface diff --git a/fabric-item-group-api-v1/src/main/java/net/fabricmc/fabric/api/itemgroup/v1/FabricItemGroupEntries.java b/fabric-item-group-api-v1/src/main/java/net/fabricmc/fabric/api/itemgroup/v1/FabricItemGroupEntries.java index 88b95473c3..78ddc10cb3 100644 --- a/fabric-item-group-api-v1/src/main/java/net/fabricmc/fabric/api/itemgroup/v1/FabricItemGroupEntries.java +++ b/fabric-item-group-api-v1/src/main/java/net/fabricmc/fabric/api/itemgroup/v1/FabricItemGroupEntries.java @@ -214,7 +214,7 @@ public void addAfter(ItemConvertible afterLast, Collection newStacks, /** * Adds stacks after an existing stack in the group, or at the end, if the stack isn't in the group. * - * @param afterLast Add {@code newStacks} after the last group entry matching this stack (compared using {@link ItemStack#areItemsAndNbtEqual}). + * @param afterLast Add {@code newStacks} after the last group entry matching this stack (compared using {@link ItemStack#areItemsAndComponentsEqual}). * @param newStacks The stacks to add. Only {@linkplain #isEnabled(ItemStack) enabled} stacks will be added. * @param visibility Determines whether the stack will be shown in the tab itself, returned * for searches, or both. @@ -331,7 +331,7 @@ public void addBefore(ItemConvertible beforeFirst, Collection newStac /** * Adds stacks before an existing stack to the group, or at the end, if the stack isn't in the group. * - * @param beforeFirst Add {@code newStacks} before the first group entry matching this stack (compared using {@link ItemStack#areItemsAndNbtEqual}). + * @param beforeFirst Add {@code newStacks} before the first group entry matching this stack (compared using {@link ItemStack#areItemsAndComponentsEqual}). * @param newStacks The stacks to add. Only {@linkplain #isEnabled(ItemStack) enabled} stacks will be added. * @param visibility Determines whether the stack will be shown in the tab itself, returned * for searches, or both. diff --git a/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/api/client/networking/v1/ClientConfigurationConnectionEvents.java b/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/api/client/networking/v1/ClientConfigurationConnectionEvents.java index 42eb7abc10..42cac04f13 100644 --- a/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/api/client/networking/v1/ClientConfigurationConnectionEvents.java +++ b/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/api/client/networking/v1/ClientConfigurationConnectionEvents.java @@ -18,7 +18,7 @@ import net.minecraft.client.MinecraftClient; import net.minecraft.client.network.ClientConfigurationNetworkHandler; -import net.minecraft.util.Identifier; +import net.minecraft.network.packet.CustomPayload; import net.fabricmc.fabric.api.event.Event; import net.fabricmc.fabric.api.event.EventFactory; @@ -30,7 +30,7 @@ public final class ClientConfigurationConnectionEvents { /** * Event indicating a connection entering the CONFIGURATION state, ready for registering channel handlers. * - * @see ClientConfigurationNetworking#registerReceiver(Identifier, ClientConfigurationNetworking.ConfigurationChannelHandler) + * @see ClientConfigurationNetworking#registerReceiver(CustomPayload.Id, ClientConfigurationNetworking.ConfigurationPayloadHandler) */ public static final Event INIT = EventFactory.createArrayBacked(ClientConfigurationConnectionEvents.Init.class, callbacks -> (handler, client) -> { for (ClientConfigurationConnectionEvents.Init callback : callbacks) { diff --git a/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/api/client/networking/v1/ClientPlayConnectionEvents.java b/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/api/client/networking/v1/ClientPlayConnectionEvents.java index da8bebfd08..22bb68bfbe 100644 --- a/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/api/client/networking/v1/ClientPlayConnectionEvents.java +++ b/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/api/client/networking/v1/ClientPlayConnectionEvents.java @@ -18,7 +18,7 @@ import net.minecraft.client.MinecraftClient; import net.minecraft.client.network.ClientPlayNetworkHandler; -import net.minecraft.util.Identifier; +import net.minecraft.network.packet.CustomPayload; import net.fabricmc.fabric.api.event.Event; import net.fabricmc.fabric.api.event.EventFactory; @@ -31,7 +31,7 @@ public final class ClientPlayConnectionEvents { /** * Event indicating a connection entered the PLAY state, ready for registering channel handlers. * - * @see ClientPlayNetworking#registerReceiver(Identifier, ClientPlayNetworking.PlayChannelHandler) + * @see ClientPlayNetworking#registerReceiver(CustomPayload.Id, ClientPlayNetworking.PlayPayloadHandler) */ public static final Event INIT = EventFactory.createArrayBacked(Init.class, callbacks -> (handler, client) -> { for (Init callback : callbacks) { diff --git a/fabric-networking-api-v1/src/main/java/net/fabricmc/fabric/api/networking/v1/ServerPlayConnectionEvents.java b/fabric-networking-api-v1/src/main/java/net/fabricmc/fabric/api/networking/v1/ServerPlayConnectionEvents.java index 1957126c95..fc93a8dc77 100644 --- a/fabric-networking-api-v1/src/main/java/net/fabricmc/fabric/api/networking/v1/ServerPlayConnectionEvents.java +++ b/fabric-networking-api-v1/src/main/java/net/fabricmc/fabric/api/networking/v1/ServerPlayConnectionEvents.java @@ -16,9 +16,9 @@ package net.fabricmc.fabric.api.networking.v1; +import net.minecraft.network.packet.CustomPayload; import net.minecraft.server.MinecraftServer; import net.minecraft.server.network.ServerPlayNetworkHandler; -import net.minecraft.util.Identifier; import net.fabricmc.fabric.api.event.Event; import net.fabricmc.fabric.api.event.EventFactory; @@ -30,7 +30,7 @@ public final class ServerPlayConnectionEvents { /** * Event indicating a connection entered the PLAY state, ready for registering channel handlers. * - * @see ServerPlayNetworking#registerReceiver(ServerPlayNetworkHandler, Identifier, ServerPlayNetworking.PlayChannelHandler) + * @see ServerPlayNetworking#registerReceiver(ServerPlayNetworkHandler, CustomPayload.Id, ServerPlayNetworking.PlayPayloadHandler) */ public static final Event INIT = EventFactory.createArrayBacked(Init.class, callbacks -> (handler, server) -> { for (Init callback : callbacks) { diff --git a/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/WorldRenderContext.java b/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/WorldRenderContext.java index e36cd0603f..ef3b78985d 100644 --- a/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/WorldRenderContext.java +++ b/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/WorldRenderContext.java @@ -35,7 +35,7 @@ /** * Except as noted below, the properties exposed here match the parameters passed to - * {@link WorldRenderer#render(MatrixStack, float, long, boolean, Camera, GameRenderer, LightmapTextureManager, Matrix4f)}. + * {@link WorldRenderer#render}. */ public interface WorldRenderContext { /** diff --git a/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/WorldRenderEvents.java b/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/WorldRenderEvents.java index 4bf58fc12f..1ddc934f7c 100644 --- a/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/WorldRenderEvents.java +++ b/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/WorldRenderEvents.java @@ -19,6 +19,7 @@ import org.jetbrains.annotations.Nullable; import net.minecraft.client.MinecraftClient; +import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.WorldRenderer; import net.minecraft.util.hit.HitResult; @@ -27,7 +28,7 @@ import net.fabricmc.fabric.api.event.EventFactory; /** - * Mods should use these events to introduce custom rendering during {@link WorldRenderer#render(net.minecraft.client.util.math.MatrixStack, float, long, boolean, net.minecraft.client.render.Camera, net.minecraft.client.render.GameRenderer, net.minecraft.client.render.LightmapTextureManager, net.minecraft.util.math.Matrix4f)} + * Mods should use these events to introduce custom rendering during {@link WorldRenderer#render} * without adding complicated and conflict-prone injections there. Using these events also enables 3rd-party renderers * that make large-scale changes to rendering maintain compatibility by calling any broken event invokers directly. * @@ -107,7 +108,7 @@ private WorldRenderEvents() { } * *

Use for global block entity render setup, or * to append block-related quads to the entity consumers using the - * {@VertexConsumerProvider} from the provided context. This + * {@link VertexConsumerProvider} from the provided context. This * will generally give better (if not perfect) results * for non-terrain translucency vs. drawing directly later on. */