mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-01-06 19:18:25 +01:00
Remove internal annotations
Since we now expose an api, everything inside the implementation is considered internal.
This commit is contained in:
parent
5aa21f67d4
commit
3a84529cf1
@ -61,7 +61,6 @@ public class SaveManager {
|
||||
}));
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public void postInit() {
|
||||
for (AbstractSave save : saves) {
|
||||
save.postInit();
|
||||
|
@ -40,7 +40,6 @@ import java.util.ArrayList;
|
||||
import java.util.BitSet;
|
||||
import java.util.List;
|
||||
|
||||
@ApiStatus.Internal
|
||||
public class WorldHeightSupport {
|
||||
|
||||
public static PacketHandler handleJoinGame(final PacketHandler parentHandler) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -37,7 +37,6 @@ import net.minecraft.util.math.MathHelper;
|
||||
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");
|
||||
|
@ -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!");
|
||||
|
@ -732,7 +732,6 @@ public class Recipes1_11_2 {
|
||||
* @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;
|
||||
|
@ -36,7 +36,6 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
* 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;
|
||||
|
@ -38,7 +38,6 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@ApiStatus.Internal
|
||||
public class ArmorHudEmulation1_8 {
|
||||
|
||||
private static final UUID ARMOR_POINTS_UUID = UUID.fromString("2AD3F246-FEE1-4E67-B886-69FD380BB150");
|
||||
|
@ -42,9 +42,7 @@ import net.minecraft.util.hit.BlockHitResult;
|
||||
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) {
|
||||
|
@ -39,7 +39,6 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@ApiStatus.Internal
|
||||
public class EnchantmentAttributesEmulation1_20_6 {
|
||||
|
||||
static {
|
||||
|
@ -133,7 +133,6 @@ public class ProtocolTranslator {
|
||||
*
|
||||
* @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();
|
||||
@ -193,7 +192,6 @@ public class ProtocolTranslator {
|
||||
/**
|
||||
* 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;
|
||||
@ -282,7 +280,6 @@ public class ProtocolTranslator {
|
||||
* @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");
|
||||
|
@ -33,7 +33,6 @@ import java.nio.file.Path;
|
||||
/**
|
||||
* 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 {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user