Skip to content

Commit 6c45199

Browse files
committed
feat: add overload static methods to ArmorTrim
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
1 parent 2c88ba5 commit 6c45199

File tree

1 file changed

+11
-0
lines changed
  • src/main/java/org/spongepowered/api/item/recipe/smithing

1 file changed

+11
-0
lines changed

src/main/java/org/spongepowered/api/item/recipe/smithing/ArmorTrim.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ static ArmorTrim of(TrimMaterial material, TrimPattern pattern) {
3434
return Sponge.game().factoryProvider().provide(Factory.class).create(material, pattern);
3535
}
3636

37+
static ArmorTrim of(Supplier<? extends TrimMaterial> material, Supplier<? extends TrimPattern> pattern) {
38+
return Sponge.game().factoryProvider().provide(Factory.class).create(material, pattern);
39+
}
40+
static ArmorTrim of(TrimMaterial material, Supplier<? extends TrimPattern> pattern) {
41+
return Sponge.game().factoryProvider().provide(Factory.class).create(material, pattern);
42+
}
43+
44+
static ArmorTrim of(Supplier<? extends TrimMaterial> material, TrimPattern pattern) {
45+
return Sponge.game().factoryProvider().provide(Factory.class).create(material, pattern);
46+
}
47+
3748
TrimMaterial material();
3849

3950
TrimPattern pattern();

0 commit comments

Comments
 (0)