ViaVersion addon to add support for some notable Minecraft snapshots
Go to file
dependabot[bot] 7892a2c79f
Bump io.netty:netty-handler from 4.1.109.Final to 4.1.110.Final
Bumps [io.netty:netty-handler](https://github.com/netty/netty) from 4.1.109.Final to 4.1.110.Final.
- [Commits](https://github.com/netty/netty/compare/netty-4.1.109.Final...netty-4.1.110.Final)

---
updated-dependencies:
- dependency-name: io.netty:netty-handler
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 09:37:38 +00:00
.github Added FUNDING.yml 2024-03-05 18:26:07 +01:00
.idea/copyright Updated copyright: 2024 2024-01-01 02:33:14 +01:00
gradle/wrapper Gradle 8.7 2024-03-23 12:50:32 +01:00
src/main Port to upstream changes 2024-05-17 19:24:42 +02:00
.gitattributes Initial commit 2023-01-14 14:24:21 +01:00
.gitignore Initial commit 2023-01-14 14:24:21 +01:00
build.gradle Bump io.netty:netty-handler from 4.1.109.Final to 4.1.110.Final 2024-05-23 09:37:38 +00:00
gradle.properties Port to upstream changes 2024-05-17 19:24:42 +02:00
gradlew Gradle 8.7 2024-03-23 12:50:32 +01:00
gradlew.bat Gradle 8.7 2024-03-23 12:50:32 +01:00
LICENSE Initial commit 2023-01-14 14:24:21 +01:00
README.md Updated jenkins link 2023-10-17 13:10:33 +02:00
settings.gradle Added toolchain resolving plugin 2024-05-16 14:12:11 +02:00

ViaAprilFools

ViaVersion addon to add support for some notable Minecraft snapshots.

ViaAprilFools is not usable by itself as a standalone software, as it is an addon for ViaVersion which adds more protocol translators. ViaAprilFools is intended to be implemented in a ViaVersion based protocol translator.

If you are looking to implement ViaAprilFools in your own software you can start by reading the Usage section.
If you just want to use ViaAprilFools yourself you can check out some projects which implement it in the Projects section.

Added Server protocols

  • 3D Shareware
  • 20w14infinite
  • Combat Test 8c

Added Client protocols

  • 3D Shareware

Projects implementing ViaAprilFools

  • ViaProxy: Standalone proxy which uses ViaVersion to translate between Minecraft versions. Allows Minecraft 1.7+ clients to join to any version server.
  • ViaFabricPlus: Fabric mod for the latest Minecraft version with QoL fixes and enhancements to the gameplay.
  • ViaAprilFoolsPaper: Paper platform implementation for ViaAprilFools. Allows the list of above client versions to join your server.

Releases

Gradle/Maven

To use ViaAprilFools with Gradle/Maven you can use the ViaVersion maven server:

repositories {
    maven { url "https://repo.viaversion.com" }
}

dependencies {
    implementation("net.raphimc:ViaAprilFools:x.x.x") // Get latest version from releases
}
<repositories>
    <repository>
        <id>viaversion</id>
        <url>https://repo.viaversion.com</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>net.raphimc</groupId>
        <artifactId>ViaAprilFools</artifactId>
        <version>x.x.x</version> <!-- Get latest version from releases -->
    </dependency>
</dependencies>

Jar File

If you just want the latest jar file you can download it from GitHub Actions or the ViaVersion Jenkins.

Usage

ViaAprilFools requires you to have an already functional ViaVersion implementation for your platform. If you don't have one you can check out ViaLoader for an abstracted and simplified, but still customizable implementation. You can also go to the other ViaVersion repositories and look at their server and proxy implementations.

Base Implementation

ViaAprilFools platform implementation

To get started you should create a class which implements the ViaAprilFools platform interface. Here is an example:

public class ViaAprilFoolsPlatformImpl implements ViaAprilFoolsPlatform {

    public ViaAprilFoolsPlatformImpl() {
        this.init(this.getDataFolder());
    }

    @Override
    public Logger getLogger() {
        return Via.getPlatform().getLogger();
    }

    @Override
    public File getDataFolder() {
        return Via.getPlatform().getDataFolder();
    }

}

This is a very basic implementation which just uses the ViaVersion logger and data folder.

Loading the platform

After you have created your platform implementation you should load it in your ViaVersion implementation. Here is an example:

Via.getManager().addEnableListener(ViaAprilFoolsPlatformImpl::new);

Make sure to add the enable listener before the Via manager is initialized (((ViaManagerImpl) Via.getManager()).init();).

Contact

If you encounter any issues, please report them on the issue tracker.
If you just want to talk or need help implementing ViaAprilFools feel free to join the ViaVersion Discord.