Skip to content
This repository was archived by the owner on Oct 2, 2022. It is now read-only.

Commit 03c81e8

Browse files
authored
Merge pull request #1 from 602723113/dev
Release 1.0.0
2 parents 5ed33f8 + 664e701 commit 03c81e8

File tree

101 files changed

+3085
-3725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+3085
-3725
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: java
2+
sudo: false
3+
jdk: oraclejdk8
4+
install: mvn clean install package

README.md

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
1-
# MayCore
2-
一个基于BukkitAPI开发的类库
1+
# May Common Library (MCLib) [![Build status](https://ci.appveyor.com/api/projects/status/fi528yanx76w25qe?svg=true)](https://ci.appveyor.com/project/602723113/may-common-library) [![Build Status](https://travis-ci.org/602723113/May-Common-Library.svg?branch=dev)](https://travis-ci.org/602723113/May-Common-Library) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/e8b69ada84954b13a415981844a7e376)](https://www.codacy.com/app/602723113/May-Common-Library?utm_source=github.com&utm_medium=referral&utm_content=602723113/May-Common-Library&utm_campaign=Badge_Grade)
2+
> A library based on BukkitAPI development, and give developer some useful feature
33
4-
## 它能为你做些什么?
5-
##### 在MayCore中你可以享受以下内容
6-
- 简易的构造Title
7-
- 简易的构造ActionBar
8-
- 简易的构造Tellraw
9-
- 简易的构造Book
10-
- [API]简易的使用1.12的新特性Advancement
11-
- 已封装好的BungeeCordAPI
12-
- 封装了许许多多的Util
4+
[Wiki](https://github.com/602723113/May-Common-Library/wiki)
5+
### README Languages
6+
- English
7+
- [Chinese | 中文](https://github.com/602723113/May-Common-Library/blob/dev/README_zh_CN.md)
138

14-
## 编译
15-
本项目使用 maven 进行管理
16-
构建请使用
17-
'''
9+
### Feature
10+
> In _MCLib_ you can enjoy the following features
11+
- Easy to use NMS
12+
- Easy to use NBT
13+
- Easy to use Tellraw
14+
- Easy to use ServerPing
15+
- Easy to use Book
16+
- Easy to use 1.12 new features **Advancement**
17+
- Easy to use Pager
18+
- Easy to use Reflection
19+
- A lot of Utils
20+
- ...
21+
22+
### License
23+
- This project follows the MIT protocol
24+
25+
### Compile
26+
This project uses Maven for management
27+
Construction please use command
28+
```
1829
mvn clean install package
19-
'''
30+
```
31+
32+
**Like this project? Why not put it a star**

README_zh_CN.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# May Common Library (MCLib) [![Build status](https://ci.appveyor.com/api/projects/status/fi528yanx76w25qe?svg=true)](https://ci.appveyor.com/project/602723113/may-common-library) [![Build Status](https://travis-ci.org/602723113/May-Common-Library.svg?branch=dev)](https://travis-ci.org/602723113/May-Common-Library) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/e8b69ada84954b13a415981844a7e376)](https://www.codacy.com/app/602723113/May-Common-Library?utm_source=github.com&utm_medium=referral&utm_content=602723113/May-Common-Library&utm_campaign=Badge_Grade)
2+
> 一个基于BukkitAPI开发的类库
3+
4+
[Wiki](https://github.com/602723113/May-Common-Library/wiki)
5+
### 特性
6+
> _MCLib_ 中你可以享受以下功能
7+
- 简易使用NMS
8+
- 简易使用NBT
9+
- 简易的使用Tellraw
10+
- 简易的使用ServerPing
11+
- 简易的使用Book
12+
- 简易的使用1.12的新特性Advancement
13+
- 简易的使用分页(Pager)
14+
- 简易的使用反射工具类
15+
- 封装了许许多多的Util
16+
- ...
17+
18+
### 协议
19+
- 本项目遵循 MIT 协议
20+
21+
### 编译
22+
本项目使用 maven 进行管理
23+
构建请使用
24+
```
25+
mvn clean install package
26+
```
27+
28+
**喜欢这个项目?不妨给它留个star?**

advancement/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>May-Common-Library</artifactId>
7+
<groupId>cc.zoyn.core</groupId>
8+
<version>1.0.0</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>advancement</artifactId>
13+
<packaging>jar</packaging>
14+
15+
16+
</project>

src/main/java/cc/zoyn/core/builder/AdvancementBuilder.java renamed to advancement/src/main/java/cc/zoyn/core/advancement/AdvancementBuilder.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
package cc.zoyn.core.builder;
1+
package cc.zoyn.core.advancement;
22

3-
import cc.zoyn.core.advancement.FrameEnum;
43
import com.google.gson.Gson;
54
import com.google.gson.GsonBuilder;
65
import com.google.gson.JsonElement;
76
import com.google.gson.JsonObject;
8-
import cc.zoyn.core.advancement.BackgroundEnum;
97
import net.md_5.bungee.api.chat.TextComponent;
108
import net.md_5.bungee.chat.ComponentSerializer;
119
import org.bukkit.Bukkit;

src/main/java/cc/zoyn/core/advancement/BackgroundEnum.java renamed to advancement/src/main/java/cc/zoyn/core/advancement/BackgroundEnum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public enum BackgroundEnum {
1414

1515
private String name;
1616

17-
private BackgroundEnum(String name) {
17+
BackgroundEnum(String name) {
1818
this.name = name;
1919
}
2020

src/main/java/cc/zoyn/core/builder/ConditionBuilder.java renamed to advancement/src/main/java/cc/zoyn/core/advancement/ConditionBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.zoyn.core.builder;
1+
package cc.zoyn.core.advancement;
22

33
import com.google.gson.JsonElement;
44
import com.google.gson.JsonObject;

src/main/java/cc/zoyn/core/builder/CriteriaBuilder.java renamed to advancement/src/main/java/cc/zoyn/core/advancement/CriteriaBuilder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
package cc.zoyn.core.builder;
1+
package cc.zoyn.core.advancement;
22

33
import com.google.common.collect.Lists;
44
import com.google.gson.JsonObject;
5-
import cc.zoyn.core.advancement.TriggerEnum;
65

76
import java.util.List;
87

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package cc.zoyn.core.advancement;
2+
3+
/**
4+
* 图标边框枚举
5+
*
6+
* @author Zoyn
7+
*/
8+
public enum FrameEnum {
9+
/**
10+
* TASK(默认)
11+
*/
12+
TASK(),
13+
/**
14+
* GOAL为更圆的边框标题,其用于完整信标进度
15+
*/
16+
GOAL(),
17+
/**
18+
* CHALLENGE,其用于杀死所有种类生物的进度
19+
*/
20+
CHALLENGE()
21+
22+
}

src/main/java/cc/zoyn/core/advancement/TriggerEnum.java renamed to advancement/src/main/java/cc/zoyn/core/advancement/TriggerEnum.java

File renamed without changes.

0 commit comments

Comments
 (0)