-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
19 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ dependencies { | |
api(libs.guice.core) | ||
api(libs.minimessage) | ||
api(libs.event.api) | ||
} | ||
api(libs.configurate) | ||
} |
31 changes: 10 additions & 21 deletions
31
api/src/main/java/broccolai/tags/api/model/tag/TagDisplayInformation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
package broccolai.tags.api.model.tag; | ||
|
||
import org.checkerframework.checker.nullness.qual.NonNull; | ||
|
||
public final class TagDisplayInformation { | ||
private final @NonNull String material; | ||
private final int customModelData; | ||
|
||
public TagDisplayInformation( | ||
@NonNull String material, | ||
int customModelData | ||
) { | ||
this.material = material; | ||
this.customModelData = customModelData; | ||
} | ||
|
||
public @NonNull String material() { | ||
return this.material; | ||
} | ||
|
||
public int customModelData() { | ||
return this.customModelData; | ||
} | ||
|
||
import org.checkerframework.checker.nullness.qual.Nullable; | ||
import org.spongepowered.configurate.objectmapping.ConfigSerializable; | ||
|
||
//todo(josh): split tag into an interface and hide this in the implementation | ||
// and remove configurate as a dependency in for api project | ||
@ConfigSerializable | ||
public record TagDisplayInformation( | ||
@NonNull String material, | ||
@Nullable Integer customModelData | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters