在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):CryptoMorin/XSeries开源软件地址(OpenSource Url):https://github.com/CryptoMorin/XSeries开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):XSeriesLibrary mainly designed to provide cross-version support for Minecraft Bukkit plugins, but it also includes numerous extra methods to help developers design their plugins easier and efficiently. Some utilities are completely unrelated to cross-version support such as NoteBlockMusic. Don't forget to add This project aims to provide quality utilities with high performance using the latest, yet efficient techniques. Although support for old versions (like 1.8) will still remain for future updates, I highly encourage all developers drop support for anything below 1.12 LinksThis project was mainly posted in SpigotMC Getting StartedWhen compiling your plugin you should be using the latest version that your plugin is going to support. All the methods are explained in the JavaDocs. Please read them before using a method. It's quite common to miss the whole purpose of cross-version support and the efficiency of the utility by using the wrong methods. You can use most of these utilities individually or use the maven dependency. Most of the utilities are intended to be independent. However, some utilities such as XParticle are intended to use another class (ParticleDisplay) Maven<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>version</version>
</dependency> You shouldn't worry if the reflection or other classes are going to use your memory with heavy useless static cache. As long as you don't use them anywhere in your code, they won't initialize. The memory usage of these utilities are extremely enhanced. Note: DO NOT extract the JAR into your project if you're using maven. You have to shade the library, otherwise your plugin or other plugins will break due to version mismatch. To shade the library, add the following under your maven plugins: <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<relocations>
<relocation>
<pattern>com.cryptomorin.xseries</pattern>
<!-- Be sure to change the package below -->
<shadedPattern>my.plugin.utils</shadedPattern>
</relocation>
</relocations>
<!-- Here you can remove the classes you don't use. -->
<!-- These are some examples. -->
<!-- The "unused" package and SkullCacheListener are excluded by default. -->
<!-- Some utilities such a XItemStack depend on more than 3 other classes, so watch out. -->
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>com/cryptomorin/xseries/XBiome*</exclude>
<exclude>com/cryptomorin/xseries/NMSExtras*</exclude>
<exclude>com/cryptomorin/xseries/NoteBlockMusic*</exclude>
<exclude>com/cryptomorin/xseries/SkullCacheListener*</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin> ContributingThere's always room for improvement. If you know better ways of doing things, I really appreciate it if you can share it with me,
but please make sure you know what you're doing and tested the project on different versions.
Any new ideas are welcome as long as they're useful; not just for you, but for everyone else. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论