Skip to content

Commit

Permalink
Remove internal annotations
Browse files Browse the repository at this point in the history
Since we now expose an api, everything inside the implementation is considered internal.
  • Loading branch information
FlorianMichael committed Dec 23, 2024
1 parent 5aa21f6 commit 3a84529
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public SaveManager(final SettingsManager settingsManager) {
}));
}

@ApiStatus.Internal
public void postInit() {
for (AbstractSave save : saves) {
save.postInit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import java.util.BitSet;
import java.util.List;

@ApiStatus.Internal
public class WorldHeightSupport {

public static PacketHandler handleJoinGame(final PacketHandler parentHandler) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,15 @@ public class CPEAdditions {

private static boolean snowing = false;

@ApiStatus.Internal
public static void modifyMappings() {
allowExtension(ClassicProtocolExtension.ENV_WEATHER_TYPE);
EXT_WEATHER_TYPE = createNewPacket(ClassicProtocolExtension.ENV_WEATHER_TYPE, 31, (user, buf) -> buf.readByte());
}

@ApiStatus.Internal
public static boolean isSnowing() {
return ProtocolTranslator.getTargetVersion().equals(LegacyProtocolVersion.c0_30cpe) && snowing;
}

@ApiStatus.Internal
public static void setSnowing(boolean snowing) {
CPEAdditions.snowing = snowing;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import net.minecraft.util.math.Vec3d;
import org.jetbrains.annotations.ApiStatus;

@ApiStatus.Internal
public class FootStepParticle1_12_2 extends SpriteBillboardParticle {

public static final Identifier ID = Identifier.of("viafabricplus", "footstep");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public class ResourcePackHeaderDiff {
registerVersion(ProtocolVersion.v1_7_2, 1, "1.7.5");
}

@ApiStatus.Internal
public static void checkOutdated() {
if (!GAME_VERSION_DIFF.containsKey(ProtocolTranslator.NATIVE_VERSION)) {
throw new RuntimeException("The native client version is not registered in the resource pack header diff!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ public static List<RecipeInfo> getRecipes(final ProtocolVersion targetVersion) {
* @param screenHandler The screen handler
* @param inventory The inventory of the screen handler
*/
@ApiStatus.Internal
public static void setCraftingResultSlot(final int syncId, final ScreenHandler screenHandler, final RecipeInputInventory inventory) {
final ClientPlayNetworkHandler network = MinecraftClient.getInstance().getNetworkHandler();
final ClientWorld world = MinecraftClient.getInstance().world;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
* Older versions only had unicode font support for some languages and therefore servers are expecting the client
* to use a unicode font, not using it on older versions can cause issues with wrong dimensions in chat components.
*/
@ApiStatus.Internal
public class UnicodeFontFix1_12_2 {

private static boolean enabled = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

import java.util.UUID;

@ApiStatus.Internal
public class ArmorHudEmulation1_8 {

private static final UUID ARMOR_POINTS_UUID = UUID.fromString("2AD3F246-FEE1-4E67-B886-69FD380BB150");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
import net.minecraft.util.hit.EntityHitResult;
import net.minecraft.util.hit.HitResult;
import net.minecraft.util.math.BlockPos;
import org.jetbrains.annotations.ApiStatus;

@ApiStatus.Internal
public class ItemPick1_21_3 {

private static void addPickBlock(final PlayerInventory inventory, final ItemStack stack) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

import java.util.Optional;

@ApiStatus.Internal
public class EnchantmentAttributesEmulation1_20_6 {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public boolean isKnown() {
*
* @param connection the Minecraft connection
*/
@ApiStatus.Internal
public static void injectViaPipeline(final ClientConnection connection, final Channel channel) {
final IClientConnection mixinClientConnection = (IClientConnection) connection;
final ProtocolVersion serverVersion = mixinClientConnection.viaFabricPlus$getTargetVersion();
Expand Down Expand Up @@ -193,7 +192,6 @@ public static void setTargetVersion(final ProtocolVersion newVersion, final bool
/**
* Resets the previous version if it is set. Calling {@link #setTargetVersion(ProtocolVersion, boolean)} with revertOnDisconnect set to true will set it.
*/
@ApiStatus.Internal
public static void injectPreviousVersionReset(final Channel channel) {
if (previousVersion == null) {
return;
Expand Down Expand Up @@ -282,7 +280,6 @@ private static void changeBedrockProtocolName() {
* @param path The path where the ViaVersion config files are located
* @return A CompletableFuture that will be completed when the initialization is done
*/
@ApiStatus.Internal
public static CompletableFuture<Void> init(final Path path) {
if (SharedConstants.getProtocolVersion() != NATIVE_VERSION.getOriginalVersion()) {
throw new IllegalStateException("Native version is not the same as the current version");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
/**
* Allows the user to override the Via* jar files with custom ones using the "jars" folder in the run directory
*/
@ApiStatus.Internal
public class ClassLoaderPriorityUtil {

/**
Expand Down

0 comments on commit 3a84529

Please sign in to comment.