Skip to content

Commit

Permalink
docs: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DebitCardz committed Aug 1, 2023
1 parent 2449e7d commit 8db0796
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repositories {
}

dependencies {
implementation("com.github.DebitCardz:mc-chestui-plus:0.0.8")
implementation("com.github.DebitCardz:mc-chestui-plus:1.0.0")
}
```
### Maven
Expand All @@ -31,7 +31,7 @@ dependencies {
<dependency>
<groupId>com.github.DebitCardz</groupId>
<artifactId>mc-chestui-plus</artifactId>
<version>0.0.8</version>
<version>1.0.0</version>
</dependency>

```
Expand Down Expand Up @@ -80,8 +80,7 @@ fun mainGUI(): GUI {
return gui(
plugin = this,
title = Component.text("Example GUI", NamedTextColor.GOLD),
type = GUIType.CHEST,
rows = 1
type = GUIType.Chest(rows = 1),
) {
slot(1, 1) {
item = item(Material.STONE) {
Expand All @@ -99,7 +98,7 @@ fun hopperGUI(): GUI {
return gui(
plugin = this,
title = Component.text("Hopper GUI", NamedTextColor.GOLD),
type = GUIType.HOPPER
type = GUIType.Hopper
) {
slot(1, 1) {
item = item(Material.CAKE) {
Expand All @@ -115,7 +114,7 @@ fun dispenserGUI(): GUI {
return gui(
plugin = this,
title = Component.text("Dispenser GUI", NamedTextColor.GOLD),
type = GUIType.DISPENSER
type = GUIType.Dispenser
) {
slot(1, 1) {
item = item(Material.CAKE) {
Expand All @@ -135,7 +134,7 @@ fun headGUI(): GUI {
return gui(
plugin = this,
title = Component.text("Head GUI", NamedTextColor.GOLD),
type = GUIType.DiSPENSER
type = GUIType.Dispenser
) {
// Middle of the dispenser.
slot(2, 2) {
Expand All @@ -157,7 +156,7 @@ fun glowingHeadGUI(): GUI {
return gui(
plugin = this,
title = Component.text("Glowing Head GUI", NamedTextColor.GOLD),
type = GUIType.DISPENSER
type = GUIType.Dispenser
) {
slot(2, 2) {
item = item(Material.PLAYER_HEAD) {
Expand All @@ -179,8 +178,7 @@ fun filledBorderGUI(): GUI {
return gui(
plugin = this,
title = Component.text("Chest GUI", NamedTextColor.GOLD),
type = GUIType.CHEST,
rows = 3
type = GUIType.Chest(rows = 3)
) {
fillBorder {
item = item(Material.GRAY_STAINED_GLASS_PANE) {
Expand All @@ -200,8 +198,7 @@ fun nextAvailableSlotUi(): GUI {
return gui(
plugin = this,
title = Component.text("Chest GUI", NamedTextColor.GOLD),
type = GUIType.CHEST,
rows = 3
type = GUIType.Chest(rows = 3)
) {
fillBorder {
item = item(Material.GRAY_STAINED_GLASS_PANE) {
Expand Down Expand Up @@ -229,8 +226,7 @@ fun itemPlacement(): GUI {
return gui(
plugin = this,
title = Component.text("Chest GUI", NamedTextColor.GOLD),
type = GUIType.CHEST,
rows = 3
type = GUIType.Chest(rows = 3)
) {
allowItemPlacement = true

Expand All @@ -250,8 +246,7 @@ fun itemDrag(): GUI {
return gui(
plugin = this,
title = Component.text("Chest GUI", NamedTextColor.GOLD),
type = GUIType.CHEST,
rows = 3
type = GUIType.Chest(rows = 3)
) {
allowItemPlacement = true

Expand All @@ -274,8 +269,7 @@ fun singleInstanceGui(): GUI {
return gui(
plugin = this,
title = Component.text("Chest GUI", NamedTextColor.GOLD),
type = GUIType.CHEST,
rows = 3
type = GUIType.Chest(rows = 3)
) {
automaticallyUnregisterListener = false

Expand Down

0 comments on commit 8db0796

Please sign in to comment.