@@ -139,7 +139,7 @@ public static void register(CommandDispatcher<CommandSource> dispatcher) {
139139 }))).then (Commands .literal ("anchored" ).then (Commands .argument ("anchor" , EntityAnchorArgument .entityAnchor ()).redirect (literalcommandnode , (p_201091_0_ ) -> {
140140 return p_201091_0_ .getSource ().withEntityAnchorType (EntityAnchorArgument .getEntityAnchor (p_201091_0_ , "anchor" ));
141141 }))).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" )));
143143 }))));
144144 }
145145
@@ -184,27 +184,27 @@ private static void checkPermissions(CommandSource source) {
184184 datacommand$idataprovider .createArgument (literal , (p_229765_3_ ) -> {
185185 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_ ) -> {
186186 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" )));
188188 }, storingResult );
189189 }))).then (Commands .literal ("float" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229798_2_ ) -> {
190190 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" )));
192192 }, storingResult );
193193 }))).then (Commands .literal ("short" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229794_2_ ) -> {
194194 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" ))));
196196 }, storingResult );
197197 }))).then (Commands .literal ("long" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229790_2_ ) -> {
198198 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" )));
200200 }, storingResult );
201201 }))).then (Commands .literal ("double" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229784_2_ ) -> {
202202 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" ));
204204 }, storingResult );
205205 }))).then (Commands .literal ("byte" ).then (Commands .argument ("scale" , DoubleArgumentType .doubleArg ()).redirect (parent , (p_229774_2_ ) -> {
206206 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" ))));
208208 }, storingResult );
209209 }))));
210210 });
0 commit comments