diff --git a/README.md b/README.md index aa73eaf..d8737c6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ There is no side effect except `BukkitView.class`, all functions just pure, ther Also, this library is a good showcase how to do declarative programming in Java. -[Example is here!](https://github.com/typecraft-io/bukkit-view/blob/main/plugin/src/main/java/io/typecraft/bukkit/view/plugin/ViewPlugin.java) +[Example is here!](https://github.com/typst-io/bukkit-view/blob/main/plugin/src/main/java/io/typst/bukkit/view/plugin/ViewPlugin.java) ## Import @@ -18,7 +18,7 @@ repositories { } dependencies { - implementation("io.typecraft:bukkit-view-core:5.1.2") + implementation("io.typst:bukkit-view-core:6.0.0") } ``` @@ -27,7 +27,7 @@ dependencies { ```xml - io.typecraft + io.typst bukkit-view-core 5.1.2 @@ -36,10 +36,10 @@ dependencies { ### Quickstart -https://github.com/typecraft-io/bukkit-view-template +https://github.com/typst-io/bukkit-view-template ```shell -git clone https://github.com/typecraft-io/bukkit-view-template +git clone https://github.com/typst-io/bukkit-view-template ``` ## Initialize diff --git a/build.gradle b/build.gradle index 40a5027..9dffc08 100644 --- a/build.gradle +++ b/build.gradle @@ -2,4 +2,4 @@ plugins { id 'base' } -group 'io.typecraft' +group 'io.typst' diff --git a/core/build.gradle b/core/build.gradle index a321750..a1a5c3a 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -5,8 +5,8 @@ plugins { id 'kr.entree.spigradle.base' version '2.3.4' } -group 'io.typecraft' -version '6.0.2' +group 'io.typst' +version '7.0.0' repositories { mavenCentral() @@ -28,7 +28,7 @@ publishing { pom { name.set("${project.group}:${project.name}") description.set("Pure view library for Minecraft.") - url.set("https://github.com/typecraft-io/bukkit-view") + url.set("https://github.com/typst-io/bukkit-view") licenses { license { name.set("The GNU General Public License, Version 3.0") @@ -43,9 +43,9 @@ publishing { } } scm { - connection.set("scm:git:git://github.com/typecraft-io/bukkit-view.git") - developerConnection.set("scm:git:ssh://github.com:typecraft-io/bukkit-view.git") - url.set("https://github.com/typecraft-io/bukkit-view/tree/master") + connection.set("scm:git:git://github.com/typst-io/bukkit-view.git") + developerConnection.set("scm:git:ssh://github.com:typst-io/bukkit-view.git") + url.set("https://github.com/typst-io/bukkit-view/tree/master") } } } diff --git a/core/src/main/java/io/typecraft/bukkit/view/BukkitView.java b/core/src/main/java/io/typst/bukkit/view/BukkitView.java similarity index 99% rename from core/src/main/java/io/typecraft/bukkit/view/BukkitView.java rename to core/src/main/java/io/typst/bukkit/view/BukkitView.java index 0ba052a..9c020fc 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/BukkitView.java +++ b/core/src/main/java/io/typst/bukkit/view/BukkitView.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; import org.bukkit.Bukkit; import org.bukkit.Material; diff --git a/core/src/main/java/io/typecraft/bukkit/view/ChestView.java b/core/src/main/java/io/typst/bukkit/view/ChestView.java similarity index 95% rename from core/src/main/java/io/typecraft/bukkit/view/ChestView.java rename to core/src/main/java/io/typst/bukkit/view/ChestView.java index 415a554..756e729 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/ChestView.java +++ b/core/src/main/java/io/typst/bukkit/view/ChestView.java @@ -1,11 +1,10 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; import lombok.Builder; import lombok.Value; import lombok.With; import org.bukkit.Material; import org.bukkit.inventory.ItemStack; -import org.jetbrains.annotations.Nullable; import java.util.ArrayList; import java.util.Collections; diff --git a/core/src/main/java/io/typecraft/bukkit/view/ClickEvent.java b/core/src/main/java/io/typst/bukkit/view/ClickEvent.java similarity index 92% rename from core/src/main/java/io/typecraft/bukkit/view/ClickEvent.java rename to core/src/main/java/io/typst/bukkit/view/ClickEvent.java index b08591b..fd5058b 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/ClickEvent.java +++ b/core/src/main/java/io/typst/bukkit/view/ClickEvent.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; import lombok.Data; import lombok.With; diff --git a/core/src/main/java/io/typecraft/bukkit/view/CloseEvent.java b/core/src/main/java/io/typst/bukkit/view/CloseEvent.java similarity index 84% rename from core/src/main/java/io/typecraft/bukkit/view/CloseEvent.java rename to core/src/main/java/io/typst/bukkit/view/CloseEvent.java index fe0b1ee..127a43c 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/CloseEvent.java +++ b/core/src/main/java/io/typst/bukkit/view/CloseEvent.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; import lombok.Data; import lombok.With; diff --git a/core/src/main/java/io/typecraft/bukkit/view/OpenEvent.java b/core/src/main/java/io/typst/bukkit/view/OpenEvent.java similarity index 82% rename from core/src/main/java/io/typecraft/bukkit/view/OpenEvent.java rename to core/src/main/java/io/typst/bukkit/view/OpenEvent.java index 6386fd3..ffdd02f 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/OpenEvent.java +++ b/core/src/main/java/io/typst/bukkit/view/OpenEvent.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; import lombok.Value; import lombok.With; diff --git a/core/src/main/java/io/typecraft/bukkit/view/UpdateEvent.java b/core/src/main/java/io/typst/bukkit/view/UpdateEvent.java similarity index 87% rename from core/src/main/java/io/typecraft/bukkit/view/UpdateEvent.java rename to core/src/main/java/io/typst/bukkit/view/UpdateEvent.java index cbd4cfd..ae98397 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/UpdateEvent.java +++ b/core/src/main/java/io/typst/bukkit/view/UpdateEvent.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; import lombok.Value; import lombok.With; diff --git a/core/src/main/java/io/typecraft/bukkit/view/ViewAction.java b/core/src/main/java/io/typst/bukkit/view/ViewAction.java similarity index 98% rename from core/src/main/java/io/typecraft/bukkit/view/ViewAction.java rename to core/src/main/java/io/typst/bukkit/view/ViewAction.java index 3505734..abcec5a 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/ViewAction.java +++ b/core/src/main/java/io/typst/bukkit/view/ViewAction.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; import lombok.Data; import lombok.Value; diff --git a/core/src/main/java/io/typecraft/bukkit/view/ViewContents.java b/core/src/main/java/io/typst/bukkit/view/ViewContents.java similarity index 95% rename from core/src/main/java/io/typecraft/bukkit/view/ViewContents.java rename to core/src/main/java/io/typst/bukkit/view/ViewContents.java index 650ab68..bd18d73 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/ViewContents.java +++ b/core/src/main/java/io/typst/bukkit/view/ViewContents.java @@ -1,6 +1,5 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; -import lombok.Data; import lombok.Value; import lombok.With; import org.bukkit.Material; diff --git a/core/src/main/java/io/typecraft/bukkit/view/ViewControl.java b/core/src/main/java/io/typst/bukkit/view/ViewControl.java similarity index 96% rename from core/src/main/java/io/typecraft/bukkit/view/ViewControl.java rename to core/src/main/java/io/typst/bukkit/view/ViewControl.java index 0624fbf..b2c9517 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/ViewControl.java +++ b/core/src/main/java/io/typst/bukkit/view/ViewControl.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; import lombok.Data; import lombok.With; diff --git a/core/src/main/java/io/typecraft/bukkit/view/ViewHolder.java b/core/src/main/java/io/typst/bukkit/view/ViewHolder.java similarity index 97% rename from core/src/main/java/io/typecraft/bukkit/view/ViewHolder.java rename to core/src/main/java/io/typst/bukkit/view/ViewHolder.java index a2dfd0b..a38809e 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/ViewHolder.java +++ b/core/src/main/java/io/typst/bukkit/view/ViewHolder.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view; +package io.typst.bukkit.view; import org.bukkit.entity.Player; import org.bukkit.inventory.Inventory; diff --git a/core/src/main/java/io/typecraft/bukkit/view/item/BukkitItem.java b/core/src/main/java/io/typst/bukkit/view/item/BukkitItem.java similarity index 98% rename from core/src/main/java/io/typecraft/bukkit/view/item/BukkitItem.java rename to core/src/main/java/io/typst/bukkit/view/item/BukkitItem.java index d7002ce..b8860a0 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/item/BukkitItem.java +++ b/core/src/main/java/io/typst/bukkit/view/item/BukkitItem.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view.item; +package io.typst.bukkit.view.item; import lombok.Data; import lombok.With; diff --git a/core/src/main/java/io/typecraft/bukkit/view/page/PageContext.java b/core/src/main/java/io/typst/bukkit/view/page/PageContext.java similarity index 90% rename from core/src/main/java/io/typecraft/bukkit/view/page/PageContext.java rename to core/src/main/java/io/typst/bukkit/view/page/PageContext.java index e32050b..2fb06c0 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/page/PageContext.java +++ b/core/src/main/java/io/typst/bukkit/view/page/PageContext.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view.page; +package io.typst.bukkit.view.page; import lombok.Data; import lombok.With; diff --git a/core/src/main/java/io/typecraft/bukkit/view/page/PageViewLayout.java b/core/src/main/java/io/typst/bukkit/view/page/PageViewLayout.java similarity index 92% rename from core/src/main/java/io/typecraft/bukkit/view/page/PageViewLayout.java rename to core/src/main/java/io/typst/bukkit/view/page/PageViewLayout.java index e35d5b9..9dfe150 100644 --- a/core/src/main/java/io/typecraft/bukkit/view/page/PageViewLayout.java +++ b/core/src/main/java/io/typst/bukkit/view/page/PageViewLayout.java @@ -1,10 +1,10 @@ -package io.typecraft.bukkit.view.page; +package io.typst.bukkit.view.page; -import io.typecraft.bukkit.view.ChestView; -import io.typecraft.bukkit.view.ViewAction; -import io.typecraft.bukkit.view.ViewContents; -import io.typecraft.bukkit.view.ViewControl; -import io.typecraft.bukkit.view.item.BukkitItem; +import io.typst.bukkit.view.ChestView; +import io.typst.bukkit.view.ViewAction; +import io.typst.bukkit.view.ViewContents; +import io.typst.bukkit.view.ViewControl; +import io.typst.bukkit.view.item.BukkitItem; import lombok.Data; import lombok.With; import org.bukkit.Material; diff --git a/plugin/build.gradle b/plugin/build.gradle index 2bd0ed8..858c4d3 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -4,8 +4,8 @@ plugins { id 'com.github.johnrengelman.shadow' version '7.1.2' } -group 'io.typecraft' -version '6.0.2' +group 'io.typst' +version '7.0.0' repositories { mavenCentral() diff --git a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/ViewPlugin.java b/plugin/src/main/java/io/typst/bukkit/view/plugin/ViewPlugin.java similarity index 92% rename from plugin/src/main/java/io/typecraft/bukkit/view/plugin/ViewPlugin.java rename to plugin/src/main/java/io/typst/bukkit/view/plugin/ViewPlugin.java index 5d310c6..25479c6 100644 --- a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/ViewPlugin.java +++ b/plugin/src/main/java/io/typst/bukkit/view/plugin/ViewPlugin.java @@ -1,10 +1,10 @@ -package io.typecraft.bukkit.view.plugin; +package io.typst.bukkit.view.plugin; -import io.typecraft.bukkit.view.BukkitView; -import io.typecraft.bukkit.view.ChestView; -import io.typecraft.bukkit.view.plugin.config.ViewConfigCodec; -import io.typecraft.bukkit.view.plugin.view.ItemListView; -import io.typecraft.bukkit.view.plugin.view.PlayerChestView; +import io.typst.bukkit.view.BukkitView; +import io.typst.bukkit.view.ChestView; +import io.typst.bukkit.view.plugin.config.ViewConfigCodec; +import io.typst.bukkit.view.plugin.view.ItemListView; +import io.typst.bukkit.view.plugin.view.PlayerChestView; import me.clip.placeholderapi.PlaceholderAPI; import org.bukkit.Bukkit; import org.bukkit.Material; diff --git a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/bungee/BungeeServerInfo.java b/plugin/src/main/java/io/typst/bukkit/view/plugin/bungee/BungeeServerInfo.java similarity index 62% rename from plugin/src/main/java/io/typecraft/bukkit/view/plugin/bungee/BungeeServerInfo.java rename to plugin/src/main/java/io/typst/bukkit/view/plugin/bungee/BungeeServerInfo.java index 4d27f0c..47654bb 100644 --- a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/bungee/BungeeServerInfo.java +++ b/plugin/src/main/java/io/typst/bukkit/view/plugin/bungee/BungeeServerInfo.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view.plugin.bungee; +package io.typst.bukkit.view.plugin.bungee; import lombok.Value; diff --git a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/command/StringCommandExecutor.java b/plugin/src/main/java/io/typst/bukkit/view/plugin/command/StringCommandExecutor.java similarity index 94% rename from plugin/src/main/java/io/typecraft/bukkit/view/plugin/command/StringCommandExecutor.java rename to plugin/src/main/java/io/typst/bukkit/view/plugin/command/StringCommandExecutor.java index bfbd76c..69e471e 100644 --- a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/command/StringCommandExecutor.java +++ b/plugin/src/main/java/io/typst/bukkit/view/plugin/command/StringCommandExecutor.java @@ -1,4 +1,4 @@ -package io.typecraft.bukkit.view.plugin.command; +package io.typst.bukkit.view.plugin.command; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; diff --git a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/config/ViewConfigCodec.java b/plugin/src/main/java/io/typst/bukkit/view/plugin/config/ViewConfigCodec.java similarity index 92% rename from plugin/src/main/java/io/typecraft/bukkit/view/plugin/config/ViewConfigCodec.java rename to plugin/src/main/java/io/typst/bukkit/view/plugin/config/ViewConfigCodec.java index 0c53280..b8d025c 100644 --- a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/config/ViewConfigCodec.java +++ b/plugin/src/main/java/io/typst/bukkit/view/plugin/config/ViewConfigCodec.java @@ -1,11 +1,11 @@ -package io.typecraft.bukkit.view.plugin.config; +package io.typst.bukkit.view.plugin.config; -import io.typecraft.bukkit.view.ChestView; -import io.typecraft.bukkit.view.ViewAction; -import io.typecraft.bukkit.view.ViewContents; -import io.typecraft.bukkit.view.ViewControl; -import io.typecraft.bukkit.view.plugin.ViewPlugin; -import io.typecraft.bukkit.view.plugin.command.StringCommandExecutor; +import io.typst.bukkit.view.ChestView; +import io.typst.bukkit.view.ViewAction; +import io.typst.bukkit.view.ViewContents; +import io.typst.bukkit.view.ViewControl; +import io.typst.bukkit.view.plugin.ViewPlugin; +import io.typst.bukkit.view.plugin.command.StringCommandExecutor; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.configuration.ConfigurationSection; diff --git a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/view/ItemListView.java b/plugin/src/main/java/io/typst/bukkit/view/plugin/view/ItemListView.java similarity index 83% rename from plugin/src/main/java/io/typecraft/bukkit/view/plugin/view/ItemListView.java rename to plugin/src/main/java/io/typst/bukkit/view/plugin/view/ItemListView.java index 9c9d5e4..fcf9f28 100644 --- a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/view/ItemListView.java +++ b/plugin/src/main/java/io/typst/bukkit/view/plugin/view/ItemListView.java @@ -1,11 +1,11 @@ -package io.typecraft.bukkit.view.plugin.view; +package io.typst.bukkit.view.plugin.view; -import io.typecraft.bukkit.view.ChestView; -import io.typecraft.bukkit.view.ClickEvent; -import io.typecraft.bukkit.view.ViewAction; -import io.typecraft.bukkit.view.ViewControl; -import io.typecraft.bukkit.view.page.PageContext; -import io.typecraft.bukkit.view.page.PageViewLayout; +import io.typst.bukkit.view.ChestView; +import io.typst.bukkit.view.ClickEvent; +import io.typst.bukkit.view.ViewAction; +import io.typst.bukkit.view.ViewControl; +import io.typst.bukkit.view.page.PageContext; +import io.typst.bukkit.view.page.PageViewLayout; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; diff --git a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/view/PlayerChestView.java b/plugin/src/main/java/io/typst/bukkit/view/plugin/view/PlayerChestView.java similarity index 89% rename from plugin/src/main/java/io/typecraft/bukkit/view/plugin/view/PlayerChestView.java rename to plugin/src/main/java/io/typst/bukkit/view/plugin/view/PlayerChestView.java index 4dd6b77..d996714 100644 --- a/plugin/src/main/java/io/typecraft/bukkit/view/plugin/view/PlayerChestView.java +++ b/plugin/src/main/java/io/typst/bukkit/view/plugin/view/PlayerChestView.java @@ -1,10 +1,10 @@ -package io.typecraft.bukkit.view.plugin.view; +package io.typst.bukkit.view.plugin.view; -import io.typecraft.bukkit.view.ChestView; -import io.typecraft.bukkit.view.ViewAction; -import io.typecraft.bukkit.view.ViewContents; -import io.typecraft.bukkit.view.ViewControl; -import io.typecraft.bukkit.view.item.BukkitItem; +import io.typst.bukkit.view.ChestView; +import io.typst.bukkit.view.ViewAction; +import io.typst.bukkit.view.ViewContents; +import io.typst.bukkit.view.ViewControl; +import io.typst.bukkit.view.item.BukkitItem; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack;