your current location:首页 > news>[RL] Random Lib Minecraft

[RL] Random Lib Minecraft

2024-12-15 02:57:12|Myriagame |source:minecraft skins

This is a random LIB module, which is open source in Github.

This module can randomly operate the numbers, string, color, items, cubes, enchantment and physical types. For players, you can use the following two instructions for random operation:

/Random Random, fail to return NULL or report an error.

/Aboutrandom View the parameters required for the specified type.

For developers, you can add the following code in your project to call this module:

 Public Static String Invokelib (Class Clazz, String F, String ... ARGS) {Try {METHOD METHOD = Clazz.ge TMETHOD (F, New Class [ARGS.Length]); Method.setaccessible (true); Object Instance = Clazz.getDeCladConStructor (). Newsstance (); Return (String) Method.invoke ((Object [])) );} Catch (Exception E) {string argss = "";For (string arg: args) {if (argss.equals ("") {argss = Arg;} else {argss = argss+","+Arg;}} System.out.println ("FAILED To Invoke"+F+"ARGS:"+ARGSS); Return "

Failed to invoke "+F+" ARGS: "+ARGSS+"

"+Getexceptiontext (E);}} Public Static String Getexceptiontext (Exception E) {String Text = E.Tostring (); For (Stacktraceelement Ste: E .getstacktrace ()) {text = text+"

Minecraft images

at "+ste;} Return text;}

Note: Please check if the module has been loaded before calling the code, otherwise it will report an error.

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.