tuubes / tuubescraft Goto Github PK
View Code? Open in Web Editor NEWTuubes for Minecraft
License: GNU Lesser General Public License v3.0
Tuubes for Minecraft
License: GNU Lesser General Public License v3.0
Which library should I choose?
I need one that works with Niol
as simply as possible.
Got size 2048 for the first packet sent by the client, which is obviously wrong.
Let's try to use minecraft-data.
I'll focus on MC 1.12 for now.
The packet classes may be frequently re-generated with DataTractor, so the packet handlers should be separated to avoid losing work.
In order to track the overall progress of the project for the next release.
Make a gradle build for Tuubes and add TuubesCore as a git subproject and gradle submodule on which TuubesCraft depends.
PacketConstructor[A <: Packet] : NiolBuffer => A
NiolBuffer => A
by idWith TuubesCraft logo and so on.
Example of how this could be done :
class PacketSomething(var number: Int, var infos: String)
class PacketSomethingBuilder[P <: PacketSomething] {
private var number: Int = _
private var infos: String = _
def withNumber(n: Int): Builder[P with Number] {
number=n
this.asInstanceOf[Builder[P with Number]]
}
def withInfos(s: String): Builder[P with Infos] {
infos=s
this.asInstanceOf[Builder[P with Infos]]
}
def build()(implicit evidence: P =:= Complete) {
new PacketSomething(number, infos)
}
object PacketSomethingBuilder {
sealed trait Number
sealed trait Infos
type Complete = PacketSomething with Number with Infos
}
We could also provide a way to construct a NiolBuffer directly, if the performance benefit is worth it.
00:44:10 DEBUG [main] TuubesCore: Creating an instance of each plugin
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.tuubes.craft.mc1_12.TuubesCraft1_12.<init>(TuubesCraft1_12.scala:8)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.tuubes.core.plugins.ScalaPluginLoader.$anonfun$load$8(ScalaPluginLoader.scala:70)
at scala.collection.TraversableLike$WithFilter.$anonfun$foreach$1(TraversableLike.scala:789)
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:52)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:788)
at org.tuubes.core.plugins.ScalaPluginLoader.load(ScalaPluginLoader.scala:65)
at org.tuubes.core.TuubesServer$.main(TuubesServer.scala:36)
at org.tuubes.core.TuubesServer.main(TuubesServer.scala)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 254
at scala.runtime.ScalaRunTime$.array_update(ScalaRunTime.scala:71)
at com.electronwill.collections.ArrayMap.update(ArrayMap.scala:38)
at org.tuubes.craft.MinecraftProtocol.registerPacket(MinecraftProtocol.scala:17)
at org.tuubes.craft.mc1_12.handshaking.HandshakingProtocol$.<init>(HandshakingProtocol.scala:9)
at org.tuubes.craft.mc1_12.handshaking.HandshakingProtocol$.<clinit>(HandshakingProtocol.scala)
... 15 more
Implement a Niol ClientAttach MinecraftClientAttach
that uses a PacketRegistry
depending on the current protocol and protocol state.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.