GithubHelp home page GithubHelp logo

porkstudios / porklib Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 5.0 31.11 MB

Fast, lightweight libraries for Java. Note: this is very much a work-in-progress, documentation is spotty and the API is changing constantly!

Home Page: https://daporkchop.net

License: Other

Java 97.84% Shell 0.01% Makefile 0.15% C 0.02% C++ 1.98%
high-performance java library modular

porklib's People

Contributors

damatrix avatar ironexception avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

porklib's Issues

Why to use PorkLib and not others?

Why not use Hikari and use PorkLib-Database?

Why not use math and use PorkLib-math?

Why not use raknet by Mojang and use PorkLib-minecraft?

Why not?

Why Porklib?

minecraft-text doesn't support translation components

The minecraft-text library does not seem to parse chat messages in my "unmodded" (no plugins) Purpur (a Paper/Spigot/CraftBukkit fork), this may be due to the strange format it uses (note that everything useful is inside of "with"):

{"translate":"chat.type.text","with":[{"text":"wnuke","clickEvent":{"action":"suggest_command","value":"/tell wnuke "},"hoverEvent":{"action":"show_entity","contents":{"type":"minecraft:player","id":"6eae0039-8396-3cb1-b63b-c6a62be747d9","name":"wnuke"}},"insertion":"wnuke"},"hello"]}

This is the Json given by the getOriginal() method, however toRawString() and getText() do not include the message ("hello"), they are empty/blank strings.
However parsing works fine when I use the same server jar on a server using my custom chat plugin/mod which gives the following json:

{"text":"","extra":["<notfunnydidntask","> hello"]}

and gives the correct message "<notfunnydidntask> hello".

Same thing occurs with with /tell or /say messages, they work on the "modded" server but not on the "unmodded" server.

The code can be seen here.

Custom stdout logger channel name

could you make redirectStdOut have changeable channel name? like this

public DefaultLogger redirectStdOut(String channelName) {
        ...
                Logger fakeLogger = this.channel(channelName);
        ...
}

image

[BUG] PorkUtil getOurStackTrace reflection errors on JDK 11

Hi, i currently plan to use the leveldb-mcpe-jni which uses this common library.

I have the problem that this project is for java 8 and thus doesn't include a module list. This leads to the reflection of the stacktrace method to fail.

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private synchronized java.lang.StackTraceElement[] java.lang.Throwable.getOurStackTrace() accessible: module java.base does not "opens java.lang" to module common
		at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340) ~[?:?]
		at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280) ~[?:?]
		at java.lang.reflect.Method.checkCanSetAccessible(Method.java:198) ~[?:?]
		at java.lang.reflect.Method.setAccessible(Method.java:192) ~[?:?]
		at net.daporkchop.lib.common.util.PorkUtil.<clinit>(PorkUtil.java:84) ~[common-0.5.5-20200817.112419-24.jar:?]

Is there a workaround for this?

'All' distribution?

Distribute a jar with all library components in, it's a bit weirdy having to put the binary library in my Gradle and being granted access to like 7 other ones. Things like this are all over the place when including PorkLib, imo an 'all' dist will help clear this stuff up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.