22
33
44import com .google .gson .Gson ;
5- import net .minecraft .client .gui .cursor .Cursor ;
6- import net .minecraft .client .gui .cursor .StandardCursors ;
75import net .minecraft .util .Identifier ;
86
97import java .util .Objects ;
@@ -12,20 +10,24 @@ public class CursorSettings implements Cloneable{
1210 public int size =32 ;
1311 public boolean enabled =false ;
1412
15- CursorSprite pointer = new CursorSprite (1 ,9 , 0 , false ,Identifier .ofVanilla ( "textures/item/diamond_sword.png" ));
16- CursorSprite arrow = new CursorSprite (0 ,0 , 0 , false ,Identifier .ofVanilla ( "textures/item/arrow.png" ));
17- CursorSprite ibeam = new CursorSprite (0 ,0 , 0 , false ,Identifier .ofVanilla ( "textures/item/ink_sac.png" ));
18- CursorSprite crosshair = new CursorSprite (0 ,0 , 0 , false ,Identifier .ofVanilla ( "textures/item/lead.png" ));
19- CursorSprite pointing_hand = new CursorSprite (0 ,0 , 0 , false ,Identifier .ofVanilla ( "textures/item/rabbit_foot.png" ));
20- CursorSprite resize_ns = new CursorSprite (0 ,0 , 0 , false ,Identifier .ofVanilla ( "textures/item/golden_hoe.png" ));
21- CursorSprite resize_ew = new CursorSprite (0 ,0 , 0 , false ,Identifier .ofVanilla ( "textures/item/copper_hoe.png" ));
22- CursorSprite resize_all = new CursorSprite (0 ,0 , 0 , false ,Identifier .ofVanilla ( "textures/item/nether_star.png" ));
23- CursorSprite not_allowed = new CursorSprite (0 ,0 , 0 , false ,Identifier .ofVanilla ( "textures/item/barrier.png" ));
13+ CursorSprite pointer = new CursorSprite (1 ,9 , 0 , false ,Identifier .of ( "minecraft" , "textures/item/diamond_sword.png" ));
14+ CursorSprite arrow = new CursorSprite (0 ,0 , 0 , false ,Identifier .of ( "minecraft" , "textures/item/arrow.png" ));
15+ CursorSprite ibeam = new CursorSprite (0 ,0 , 0 , false ,Identifier .of ( "minecraft" , "textures/item/ink_sac.png" ));
16+ CursorSprite crosshair = new CursorSprite (0 ,0 , 0 , false ,Identifier .of ( "minecraft" , "textures/item/lead.png" ));
17+ CursorSprite pointing_hand = new CursorSprite (0 ,0 , 0 , false ,Identifier .of ( "minecraft" , "textures/item/rabbit_foot.png" ));
18+ CursorSprite resize_ns = new CursorSprite (0 ,0 , 0 , false ,Identifier .of ( "minecraft" , "textures/item/golden_hoe.png" ));
19+ CursorSprite resize_ew = new CursorSprite (0 ,0 , 0 , false ,Identifier .of ( "minecraft" , "textures/item/copper_hoe.png" ));
20+ CursorSprite resize_all = new CursorSprite (0 ,0 , 0 , false ,Identifier .of ( "minecraft" , "textures/item/nether_star.png" ));
21+ CursorSprite not_allowed = new CursorSprite (0 ,0 , 0 , false ,Identifier .of ( "minecraft" , "textures/item/barrier.png" ));
2422
2523 public CursorSettings clone () {
2624 return new Gson ().fromJson (new Gson ().toJson (this ), CursorSettings .class );
2725 }
2826
27+ public CursorSprite currentCursor () {
28+ return pointer ;
29+ }
30+
2931 public static final class CursorSprite {
3032 public float x ;
3133 public float y ;
0 commit comments