X-Niter / AE2WirelessTerminalLibrary

A Library and API for integrating Infinite Range-capable Wireless Terminals with built-in Baubles support
MIT License
1 stars 0 forks source link

AE2 Wireless Terminal Library

This is a library and API which allows for easy addition of Infinite range-capable Wireless Terminals for AE2 with built-in Baubles support.

The current API implementation is kinda bloated for a full implementation which includes Infinity Booster support, and I do plan to make things simpler in time.

Several things have to fall into place in order for your terminal to function properly and be compatible with WUT (Wireless Universal Terminal), so I'll break this up into sections labeled with their respective classes.

API

Gradle

The required libraries are available on Maven. Add the following to your build.gradle to have them and necessary dependencies automatically imported into your project:

repositories {
    maven {
        name = "covers Maven"
        url = "http://maven.covers1624.net"
    }
    maven {
        name = "Curse"
        url = "https://minecraft.curseforge.com/api/maven/"
    }
}

dependencies {
    deobfCompile "p455w0rd:p455w0rdslib:1.12.2-2.2.151"
    deobfCompile "appeng:appliedenergistics2:rv6-stable-6"
    deobfCompile "p455w0rd:AE2WTLib:1.12.2-1.0.29"
    deobfCompile "baubles:Baubles:1.12:1.5.2"
}

Item

I recommend overriding ICustomWirelessTerminalItem#getStorageChannel using a default implementation inside this custom interface. Example

Container

GUI

More info and changes will be coming. I know this is convoluted atm, but it's not complete yet. This should, however, be enough to get functional integration with the Wireless Universal Terminal and infinite range capabilities.