You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `String`. The Category ID, must be unique. Requires not null and the ID must be unique.
34
52
35
53
```groovy:no-line-numbers
@@ -43,43 +61,59 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte
43
61
frame(ResourceLocation)
44
62
```
45
63
64
+
- `Sound`. The sounds that will be played when the recipe is crafted. Can be overridden by the recipe. The first `float` value is the volume, the second `float` value is the pitch of the sound.
65
+
66
+
```groovy:no-line-numbers
67
+
sound(Sound)
68
+
sound(String)
69
+
sound(SoundEvent)
70
+
sound(ResourceLocation)
71
+
sound(String, float, float)
72
+
sound(SoundEvent, float, float)
73
+
sound(ResourceLocation, float, float)
74
+
```
75
+
46
76
- `ResourceLocation`. The path to the border texture. The resource must be loaded via external methods. [Textures that come with the mod](https://github.com/Ender-Development/selection-gui-crafting-continued/tree/master/src/main/resources/assets/selectionguicrafting/textures/gui/background). (Default `selectionguicrafting:textures/gui/background/default.png`).
47
77
48
78
```groovy:no-line-numbers
49
79
border(String)
50
80
border(ResourceLocation)
51
81
```
52
82
53
-
- `ArrayList<GsSound>`. The sounds that will be played when the recipe is crafted. Can be overridden by the recipe. The first `float` value is the volume, the second `float` value is the pitch of the sound.
83
+
- `AbstractTrigger`. A trigger that will open a GUI with all recipes for that category. Can be a block or an item. The first `double` value modifies the item damage, the second the crafting time, the third the amount of xp given to the player. Requires not null and a category needs at least one trigger.
54
84
55
85
```groovy:no-line-numbers
56
-
sound(GsSound)
57
-
sound(String, float, float)
58
-
sound(SoundEvent, float, float)
59
-
sound(ResourceLocation, float, float)
86
+
trigger(Block)
87
+
trigger(IIngredient)
88
+
trigger(ItemTrigger)
89
+
trigger(BlockTrigger)
90
+
trigger(Block, double, double, double)
91
+
trigger(IIngredient, double, double, double)
60
92
```
61
93
62
-
- `ArrayList<GsParticle>`. The particles that will be spawned when the recipe is crafted. Can be overridden by the recipe. The `int` value is the amount of particles, the `float` value is the speed of the particles.
94
+
- `Particle`. The particles that will be spawned when the recipe is crafted. Can be overridden by the recipe. The `int` value is the amount of particles, the `float` value is the speed of the particles.
63
95
64
96
```groovy:no-line-numbers
65
-
particle(GsParticle)
97
+
particle(String)
98
+
particle(Particle)
99
+
particle(EnumParticleTypes)
66
100
particle(String, int, float)
67
101
particle(EnumParticleTypes, int, float)
68
102
```
69
103
70
-
- `GsEnum.QueueType`. If the recipes in this category can be queued. Can be overridden by the recipe. Allowed values are: `true`, `false` or `YES`, `NO`. (Default `YES`).
104
+
- `QueueType`. If the recipes in this category can be queued. Can be overridden by the recipe. Allowed values are: `true`, `false` or `YES`, `NO`. (Default `YES`).
71
105
72
106
```groovy:no-line-numbers
73
107
queueType(String)
74
108
queueType(boolean)
75
-
queueType(GsEnum.QueueType)
109
+
queueType(QueueType)
76
110
```
77
111
78
-
- `GsEnum.SoundType`. How the sounds will be played. Can be overridden by the recipe. Allowed values are: `RANDOM` or `COMBINED`. (Default `RANDOM`).
112
+
- `SoundType`. How the sounds will be played. Can be overridden by the recipe. Allowed values are: `RANDOM` or `COMBINED`. (Default `RANDOM`).
79
113
80
114
```groovy:no-line-numbers
81
115
soundType(String)
82
-
soundType(GsEnum.SoundType)
116
+
soundType(SoundType)
83
117
```
84
118
85
119
- `ResourceLocation`. The path to the background texture. The resource must be loaded via external methods. [Textures that come with the mod](https://github.com/Ender-Development/selection-gui-crafting-continued/tree/master/src/main/resources/assets/selectionguicrafting/textures/gui/background). (Default `selectionguicrafting:textures/gui/background/default.png`).
@@ -96,17 +130,11 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte
96
130
decoration(ResourceLocation)
97
131
```
98
132
99
-
- `GsEnum.OutputType`. How the output will be handed to the player. Can be overridden by the recipe. Allowed values are: `DROP` or `INVENTORY`. (Default `DROP`).
133
+
- `OutputType`. How the output will be handed to the player. Can be overridden by the recipe. Allowed values are: `DROP` or `INVENTORY`. (Default `INVENTORY`).
100
134
101
135
```groovy:no-line-numbers
102
136
outputType(String)
103
-
outputType(GsEnum.OutputType)
104
-
```
105
-
106
-
- `String`. The display name of the category that will be shown in the GUI. This can either be a string or a translation key if you want to make your Display Name translatable. Requires not null and the display name must be set.
107
-
108
-
```groovy:no-line-numbers
109
-
displayName(String)
137
+
outputType(OutputType)
110
138
```
111
139
112
140
- `ResourceLocation`. The path to the progress bar texture. The resource must be loaded via external methods. Can be overridden by the recipe. [Textures that come with the mod](https://github.com/Ender-Development/selection-gui-crafting-continued/tree/master/src/main/resources/assets/selectionguicrafting/textures/gui/bar). (Default `selectionguicrafting:textures/gui/progress/default.png`).
@@ -116,37 +144,41 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte
116
144
bar(ResourceLocation)
117
145
```
118
146
119
-
- `GsEnum.BackgroundType`. How the background will be rendered. The resource must be loaded via external methods. Allowed values are: `SINGLE_STRETCH`, `TILE`, or `SINGLE_CUT`. `TILE` uses a 16x16 texture and repeats it. `SINGLE_STRETCH` stretches the texture ratio to fill the screen. `SINGLE_CUT` stretches the texture while keeping the aspect ratio and cuts of anything that goes outside the gui. The texture is centered on the x and y axis. (Default `TILE`).
147
+
- `BackgroundType`. How the background will be rendered. The resource must be loaded via external methods. Allowed values are: `SINGLE_STRETCH`, `TILE`, or `SINGLE_CUT`. `TILE` uses a 16x16 texture and repeats it. `SINGLE_STRETCH` stretches the texture ratio to fill the screen. `SINGLE_CUT` stretches the texture while keeping the aspect ratio and cuts of anything that goes outside the gui. The texture is centered on the x and y axis. (Default `TILE`).
120
148
121
149
```groovy:no-line-numbers
122
150
backgroundType(String)
123
-
backgroundType(GsEnum.BackgroundType)
151
+
backgroundType(BackgroundType)
124
152
```
125
153
126
-
- First validates the builder, returning `null` and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returns `null` or `io.enderdev.selectionguicrafting.registry.GsCategory`).
154
+
---
155
+
156
+
- First validates the builder, returning `null` and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returns `null` or `io.enderdev.selectionguicrafting.registry.category.Category`).
0 commit comments