File tree Expand file tree Collapse file tree
configuration/skyblock/items/miscellaneous
type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/item/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 - id : RAW_SOULFLOW
33 material : PLAYER_HEAD
44 rarity : UNCOMMON
5- lore :
6- - " §7Hold and right-click to consume,"
7- - " §7gaining §3+1⸎ Soulflow§7."
85 components :
96 - id : SOULFLOW
107 amount : 1
1310 - id : SOULFLOW
1411 material : PLAYER_HEAD
1512 rarity : RARE
16- lore :
17- - " §7Hold and right-click to consume,"
18- - " §7gaining §3+160⸎ Soulflow§7."
1913 components :
2014 - id : SOULFLOW
2115 amount : 160
Original file line number Diff line number Diff line change 44import net .swofty .type .skyblockgeneric .gui .inventories .GUIConsumeSoulflow ;
55import net .swofty .type .skyblockgeneric .item .SkyBlockItemComponent ;
66
7+ import java .util .List ;
8+
79public class SoulflowComponent extends SkyBlockItemComponent {
810
911 @ Getter
1012 private final int amount ;
1113
1214 public SoulflowComponent (int amount ) {
15+ addInheritedComponent (new LoreUpdateComponent (
16+ List .of (
17+ "§7Hold and right-click to consume," ,
18+ "§7gaining §3+" + amount + "⸎ Soulflow§7."
19+ ), false
20+ ));
1321 addInheritedComponent (
1422 new InteractableComponent ((player , item ) -> {
1523 new GUIConsumeSoulflow (item ).open (player );
You can’t perform that action at this time.
0 commit comments