Skip to content

Commit

Permalink
docs: update documentation (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
DebitCardz authored Aug 1, 2023
1 parent ca67118 commit b1f5117
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 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.7")
implementation("com.github.DebitCardz:mc-chestui-plus:0.0.8")
}
```
### Maven
Expand All @@ -31,7 +31,7 @@ dependencies {
<dependency>
<groupId>com.github.DebitCardz</groupId>
<artifactId>mc-chestui-plus</artifactId>
<version>0.0.7</version>
<version>0.0.8</version>
</dependency>

```
Expand Down Expand Up @@ -83,7 +83,7 @@ fun mainGUI(): GUI {
type = GUIType.CHEST,
rows = 1
) {
slot(0, 0) {
slot(1, 1) {
item = item(Material.STONE) {
name = Component.text("Cool stone!")
}
Expand All @@ -101,7 +101,7 @@ fun hopperGUI(): GUI {
title = Component.text("Hopper GUI", NamedTextColor.GOLD),
type = GUIType.HOPPER
) {
slot(0, 0) {
slot(1, 1) {
item = item(Material.CAKE) {
name = Component.text("Cooler Cake")
}
Expand All @@ -117,7 +117,7 @@ fun dispenserGUI(): GUI {
title = Component.text("Dispenser GUI", NamedTextColor.GOLD),
type = GUIType.DISPENSER
) {
slot(0, 0) {
slot(1, 1) {
item = item(Material.CAKE) {
name = Component.text("Dispensed Cake")
}
Expand All @@ -138,7 +138,7 @@ fun headGUI(): GUI {
type = GUIType.DiSPENSER
) {
// Middle of the dispenser.
slot(1, 1) {
slot(2, 2) {
item = item(Material.PLAYER_HEAD) {
name = Component.text("Your head!", NamedTextColor.RED)
skullOwner = player
Expand All @@ -159,7 +159,7 @@ fun glowingHeadGUI(): GUI {
title = Component.text("Glowing Head GUI", NamedTextColor.GOLD),
type = GUIType.DISPENSER
) {
slot(1, 1) {
slot(2, 2) {
item = item(Material.PLAYER_HEAD) {
name = Component.text("Your glowing head!", NamedTextColor.GOLD)
skulOwner = player
Expand Down Expand Up @@ -279,7 +279,6 @@ fun singleInstanceGui(): GUI {
) {
automaticallyUnregisterListener = false

// items is a Map of <Int, ItemStack>.
slot(4, 1) {
item = item(Material.CAKE) {
name = Component.text("Cake", NamedTextColor.GOLD)
Expand Down

0 comments on commit b1f5117

Please sign in to comment.