@@ -19,7 +19,7 @@ public class PlayerEntityConcreteData {
19
19
20
20
public static void grant (Advancement advancement , PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
21
21
Command [] command ;
22
- String playerName = caller .value .getValue ();
22
+ String playerName = caller .getValue () .getValue ();
23
23
if (advancement instanceof AdvancementConcrete ){
24
24
command = new Command [] {new Command ("advancement grant " + playerName + " only " + ((AdvancementConcrete ) advancement ).getValue ())};
25
25
}else {
@@ -30,16 +30,16 @@ public static void grant(Advancement advancement, PlayerVar.PlayerEntityVarConcr
30
30
}
31
31
32
32
public static void grantAll (PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
33
- String playerName = caller .value .getValue ();
33
+ String playerName = caller .getValue () .getValue ();
34
34
var command = new Command ("advancement grant " + playerName + " everything" );
35
35
returnValue .setValue (new CommandReturn (command , "return" ));
36
36
Function .Companion .addCommand (command );
37
37
}
38
38
39
39
@ MNIFunction (normalParams = {"Advancement advancement" }, caller = "Player" , returnType = "CommandReturn" )
40
- public static void grantFrom (Advancement advancement , PlayerVar .PlayerEntityVar caller , ValueWrapper <CommandReturn > returnValue ) {
40
+ public static void grantFrom (Advancement advancement , PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
41
41
Command [] commands ;
42
- String playerName = caller .getEntity ().getName ();
42
+ String playerName = caller .getValue ().getValue ();
43
43
if (advancement instanceof AdvancementConcrete ){
44
44
commands = new Command []{new Command ("advancement grant " + playerName + " from " + ((AdvancementConcrete ) advancement ).getValue ())};
45
45
}else {
@@ -50,9 +50,9 @@ public static void grantFrom(Advancement advancement, PlayerVar.PlayerEntityVar
50
50
}
51
51
52
52
@ MNIFunction (normalParams = {"Advancement advancement" }, caller = "Player" , returnType = "CommandReturn" )
53
- public static void grantThrough (Advancement advancement , PlayerVar .PlayerEntityVar caller , ValueWrapper <CommandReturn > returnValue ) {
53
+ public static void grantThrough (Advancement advancement , PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
54
54
Command [] commands ;
55
- String playerName = caller .getEntity ().getName ();
55
+ String playerName = caller .getValue ().getValue ();
56
56
if (advancement instanceof AdvancementConcrete ){
57
57
commands = new Command []{new Command ("advancement grant " + playerName + " through " + ((AdvancementConcrete ) advancement ).getValue ())};
58
58
}else {
@@ -63,9 +63,9 @@ public static void grantThrough(Advancement advancement, PlayerVar.PlayerEntityV
63
63
}
64
64
65
65
@ MNIFunction (normalParams = {"Advancement advancement" }, caller = "Player" , returnType = "CommandReturn" )
66
- public static void grantUntil (Advancement advancement , PlayerVar .PlayerEntityVar caller , ValueWrapper <CommandReturn > returnValue ) {
66
+ public static void grantUntil (Advancement advancement , PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
67
67
Command [] commands ;
68
- String playerName = caller .getEntity ().getName ();
68
+ String playerName = caller .getValue ().getValue ();
69
69
if (advancement instanceof AdvancementConcrete ){
70
70
commands = new Command []{new Command ("advancement grant " + playerName + " until " + ((AdvancementConcrete ) advancement ).getValue ())};
71
71
}else {
@@ -78,7 +78,7 @@ public static void grantUntil(Advancement advancement, PlayerVar.PlayerEntityVar
78
78
@ MNIFunction (normalParams = {"Advancement advancement" }, caller = "Player" , returnType = "CommandReturn" )
79
79
public static void revoke (Advancement advancement , PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
80
80
Command [] command ;
81
- String playerName = caller .value .getValue ();
81
+ String playerName = caller .getValue () .getValue ();
82
82
if (advancement instanceof AdvancementConcrete ){
83
83
command = new Command [] {new Command ("advancement revoke " + playerName + " only " + ((AdvancementConcrete ) advancement ).getValue ())};
84
84
}else {
@@ -90,7 +90,7 @@ public static void revoke(Advancement advancement, PlayerVar.PlayerEntityVarConc
90
90
91
91
@ MNIFunction (caller = "Player" , returnType = "CommandReturn" )
92
92
public static void revokeAll (PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
93
- String playerName = caller .value .getValue ();
93
+ String playerName = caller .getValue () .getValue ();
94
94
var command = new Command ("advancement revoke " + playerName + " everything" );
95
95
returnValue .setValue (new CommandReturn (command , "return" ));
96
96
Function .Companion .addCommand (command );
@@ -99,7 +99,7 @@ public static void revokeAll(PlayerVar.PlayerEntityVarConcrete caller, ValueWrap
99
99
@ MNIFunction (normalParams = {"Advancement advancement" }, caller = "Player" , returnType = "CommandReturn" )
100
100
public static void revokeFrom (Advancement advancement , PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
101
101
Command [] command ;
102
- String playerName = caller .value .getValue ();
102
+ String playerName = caller .getValue () .getValue ();
103
103
if (advancement instanceof AdvancementConcrete ){
104
104
command = new Command [] {new Command ("advancement revoke " + playerName + " from " + ((AdvancementConcrete ) advancement ).getValue ())};
105
105
}else {
@@ -112,7 +112,7 @@ public static void revokeFrom(Advancement advancement, PlayerVar.PlayerEntityVar
112
112
@ MNIFunction (normalParams = {"Advancement advancement" }, caller = "Player" , returnType = "CommandReturn" )
113
113
public static void revokeThrough (Advancement advancement , PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
114
114
Command [] command ;
115
- String playerName = caller .value .getValue ();
115
+ String playerName = caller .getValue () .getValue ();
116
116
if (advancement instanceof AdvancementConcrete ){
117
117
command = new Command [] {new Command ("advancement revoke " + playerName + " through " + ((AdvancementConcrete ) advancement ).getValue ())};
118
118
}else {
@@ -125,7 +125,7 @@ public static void revokeThrough(Advancement advancement, PlayerVar.PlayerEntity
125
125
@ MNIFunction (normalParams = {"Advancement advancement" }, caller = "Player" , returnType = "CommandReturn" )
126
126
public static void revokeUntil (Advancement advancement , PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ) {
127
127
Command [] command ;
128
- String playerName = caller .value .getValue ();
128
+ String playerName = caller .getValue () .getValue ();
129
129
if (advancement instanceof AdvancementConcrete ){
130
130
command = new Command [] {new Command ("advancement revoke " + playerName + " until " + ((AdvancementConcrete ) advancement ).getValue ())};
131
131
}else {
@@ -139,7 +139,7 @@ public static void revokeUntil(Advancement advancement, PlayerVar.PlayerEntityVa
139
139
public static void getAttribute (MCString id , MCFloat scale , PlayerVar .PlayerEntityVarConcrete caller , ValueWrapper <CommandReturn > returnValue ){
140
140
Command [] commands ;
141
141
Command command ;
142
- String playerName = caller .value .getValue ();
142
+ String playerName = caller .getValue () .getValue ();
143
143
if (id instanceof MCStringConcrete idC ){
144
144
command = new Command ("attribute " + playerName + " " + idC .getValue ().getValue () + " get" );
145
145
}else {
0 commit comments