Skip to content

Commit

Permalink
Update to 1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Nov 28, 2024
1 parent 4b9de1d commit 274082e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/versions.html
minecraft_version=1.21.2
yarn_mappings=1.21.2+build.1
loader_version=0.16.7
minecraft_version=1.21.4-rc1
yarn_mappings=1.21.4-rc1+build.1
loader_version=0.16.9

#Fabric api
fabric_version=0.106.0+1.21.2
fabric_version=0.110.2+1.21.4


# Mod Properties
mod_version = 1.7.2+1.21.2
mod_version = 1.8.0+1.21.4
maven_group = eu.pb4
archives_base_name = sgui

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,10 @@ public AnimatedGuiElementBuilder glow(boolean value) {
/**
* Sets the custom model data of the element.
*
* @param value the value used for custom model data
* @return this element builder
*/
public AnimatedGuiElementBuilder setCustomModelData(int value) {
this.itemStack.set(DataComponentTypes.CUSTOM_MODEL_DATA, new CustomModelDataComponent(value));
public AnimatedGuiElementBuilder setCustomModelData(List<Float> floats, List<Boolean> flags, List<String> strings, List<Integer> colors) {
this.itemStack.set(DataComponentTypes.CUSTOM_MODEL_DATA, new CustomModelDataComponent(floats, flags, strings, colors));
return this;
}

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/eu/pb4/sgui/api/elements/GuiElementBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,10 @@ public GuiElementBuilder glow(boolean value) {
/**
* Sets the custom model data of the element.
*
* @param value the value used for custom model data
* @return this element builder
*/
public GuiElementBuilder setCustomModelData(int value) {
this.itemStack.set(DataComponentTypes.CUSTOM_MODEL_DATA, new CustomModelDataComponent(value));
public GuiElementBuilder setCustomModelData(List<Float> floats, List<Boolean> flags, List<String> strings, List<Integer> colors) {
this.itemStack.set(DataComponentTypes.CUSTOM_MODEL_DATA, new CustomModelDataComponent(floats, flags, strings, colors));
return this;
}

Expand Down

0 comments on commit 274082e

Please sign in to comment.