handlePacketType(PacketPlayIn#.class, packet, () -> {
//basically just executes this code without having dumb if (packet instanceof PacketPlayIn#) { } everywhere
});
And, to answer your question, my brain is retarded and doesn't lay trust in the == operator, so I find myself doing things such as what the two of you are commenting about.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.