@@ -139,7 +139,7 @@ public static void register(CommandDispatcher<CommandSource> dispatcher) {
139
139
}))).then (Commands .literal ("anchored" ).then (Commands .argument ("anchor" , EntityAnchorArgument .entityAnchor ()).redirect (literalcommandnode , (p_201091_0_ ) -> {
140
140
return p_201091_0_ .getSource ().withEntityAnchorType (EntityAnchorArgument .getEntityAnchor (p_201091_0_ , "anchor" ));
141
141
}))).then (Commands .literal ("in" ).then (Commands .argument ("dimension" , DimensionArgument .getDimension ()).redirect (literalcommandnode , (p_201089_0_ ) -> {
142
- return p_201089_0_ .getSource ().withWorld (p_201089_0_ .getSource ().getServer ().getWorld (DimensionArgument .func_212592_a (p_201089_0_ , "dimension" )));
142
+ return p_201089_0_ .getSource ().withWorld (p_201089_0_ .getSource ().getServer ().getWorld (DimensionArgument .getDimensionArgument (p_201089_0_ , "dimension" )));
143
143
}))));
144
144
}
145
145
@@ -184,27 +184,27 @@ private static void checkPermissions(CommandSource source) {
184
184
datacommand$idataprovider .createArgument (literal , (p_229765_3_ ) -> {
185
185
return p_229765_3_ .then (Commands .argument ("path" , NBTPathArgument .nbtPath ()).then (Commands .literal ("int" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229801_2_ ) -> {
186
186
return storeIntoNBT (p_229801_2_ .getSource (), datacommand$idataprovider .createAccessor (p_229801_2_ ), NBTPathArgument .getNBTPath (p_229801_2_ , "path" ), (p_229800_1_ ) -> {
187
- return IntNBT .func_229692_a_ ((int ) ((double ) p_229800_1_ * DoubleArgumentType .getDouble (p_229801_2_ , "scale" )));
187
+ return IntNBT .valueOf ((int ) ((double ) p_229800_1_ * DoubleArgumentType .getDouble (p_229801_2_ , "scale" )));
188
188
}, storingResult );
189
189
}))).then (Commands .literal ("float" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229798_2_ ) -> {
190
190
return storeIntoNBT (p_229798_2_ .getSource (), datacommand$idataprovider .createAccessor (p_229798_2_ ), NBTPathArgument .getNBTPath (p_229798_2_ , "path" ), (p_229797_1_ ) -> {
191
- return FloatNBT .func_229689_a_ ((float ) ((double ) p_229797_1_ * DoubleArgumentType .getDouble (p_229798_2_ , "scale" )));
191
+ return FloatNBT .valueOf ((float ) ((double ) p_229797_1_ * DoubleArgumentType .getDouble (p_229798_2_ , "scale" )));
192
192
}, storingResult );
193
193
}))).then (Commands .literal ("short" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229794_2_ ) -> {
194
194
return storeIntoNBT (p_229794_2_ .getSource (), datacommand$idataprovider .createAccessor (p_229794_2_ ), NBTPathArgument .getNBTPath (p_229794_2_ , "path" ), (p_229792_1_ ) -> {
195
- return ShortNBT .func_229701_a_ ((short ) ((int ) ((double ) p_229792_1_ * DoubleArgumentType .getDouble (p_229794_2_ , "scale" ))));
195
+ return ShortNBT .valueOf ((short ) ((int ) ((double ) p_229792_1_ * DoubleArgumentType .getDouble (p_229794_2_ , "scale" ))));
196
196
}, storingResult );
197
197
}))).then (Commands .literal ("long" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229790_2_ ) -> {
198
198
return storeIntoNBT (p_229790_2_ .getSource (), datacommand$idataprovider .createAccessor (p_229790_2_ ), NBTPathArgument .getNBTPath (p_229790_2_ , "path" ), (p_229788_1_ ) -> {
199
- return LongNBT .func_229698_a_ ((long ) ((double ) p_229788_1_ * DoubleArgumentType .getDouble (p_229790_2_ , "scale" )));
199
+ return LongNBT .valueOf ((long ) ((double ) p_229788_1_ * DoubleArgumentType .getDouble (p_229790_2_ , "scale" )));
200
200
}, storingResult );
201
201
}))).then (Commands .literal ("double" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229784_2_ ) -> {
202
202
return storeIntoNBT (p_229784_2_ .getSource (), datacommand$idataprovider .createAccessor (p_229784_2_ ), NBTPathArgument .getNBTPath (p_229784_2_ , "path" ), (p_229781_1_ ) -> {
203
- return DoubleNBT .func_229684_a_ ((double ) p_229781_1_ * DoubleArgumentType .getDouble (p_229784_2_ , "scale" ));
203
+ return DoubleNBT .valueOf ((double ) p_229781_1_ * DoubleArgumentType .getDouble (p_229784_2_ , "scale" ));
204
204
}, storingResult );
205
205
}))).then (Commands .literal ("byte" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229774_2_ ) -> {
206
206
return storeIntoNBT (p_229774_2_ .getSource (), datacommand$idataprovider .createAccessor (p_229774_2_ ), NBTPathArgument .getNBTPath (p_229774_2_ , "path" ), (p_229762_1_ ) -> {
207
- return ByteNBT .func_229671_a_ ((byte ) ((int ) ((double ) p_229762_1_ * DoubleArgumentType .getDouble (p_229774_2_ , "scale" ))));
207
+ return ByteNBT .valueOf ((byte ) ((int ) ((double ) p_229762_1_ * DoubleArgumentType .getDouble (p_229774_2_ , "scale" ))));
208
208
}, storingResult );
209
209
}))));
210
210
});
0 commit comments