-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f37c986
commit bd5fbe9
Showing
52 changed files
with
724 additions
and
1,208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
Common/src/main/java/me/hypherionmc/morecreativetabs/client/data/CustomCreativeTab.java
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
...rc/main/java/me/hypherionmc/morecreativetabs/client/data/CustomCreativeTabJsonHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package me.hypherionmc.morecreativetabs.client.data; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
import java.util.ArrayList; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
public class CustomCreativeTabJsonHelper { | ||
|
||
@SerializedName("tab_enabled") | ||
private boolean tabEnabled; | ||
|
||
@SerializedName("tab_name") | ||
private String tabName; | ||
|
||
@SerializedName("tab_stack") | ||
private TabIcon tabIcon; | ||
|
||
@SerializedName("tab_background") | ||
private String tabBackground; | ||
|
||
private boolean replace; | ||
|
||
@Setter | ||
private boolean keepExisting; | ||
|
||
@SerializedName("tab_items") | ||
private ArrayList<TabItem> tabItems; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
public static class TabItem { | ||
private String name; | ||
|
||
@SerializedName("hide_old_tab") | ||
private boolean hideOldTab; | ||
|
||
private String nbt; | ||
} | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
public static class TabIcon { | ||
private String name; | ||
private String nbt; | ||
} | ||
} |
16 changes: 11 additions & 5 deletions
16
Common/src/main/java/me/hypherionmc/morecreativetabs/client/data/DisabledTabsJsonHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
package me.hypherionmc.morecreativetabs.client.data; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.ArrayList; | ||
|
||
/** | ||
* @author HypherionSA | ||
* Gson Helper class for loading disabled tabs | ||
*/ | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
public class DisabledTabsJsonHelper { | ||
public ArrayList<String> disabled_tabs; | ||
|
||
@SerializedName("disabled_tabs") | ||
private ArrayList<String> disabledTabs; | ||
} |
11 changes: 0 additions & 11 deletions
11
Common/src/main/java/me/hypherionmc/morecreativetabs/client/data/OrderedTabs.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
Common/src/main/java/me/hypherionmc/morecreativetabs/client/data/OrderedTabsJsonHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package me.hypherionmc.morecreativetabs.client.data; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
public class OrderedTabsJsonHelper { | ||
|
||
private List<String> tabs; | ||
|
||
} |
Oops, something went wrong.