Documentation - AndrewImalion/ModPE-Docs GitHub Wiki

This is a detailed documentation of the all the functions, render types, textures and more

Functions

###Before you go...

Here are some basic pieces of information that will be helpful in this documentation.

#####Strings

  • A string is a data type, and is used to represent text rather than numbers.
  • It is made up of a set of characters that can also contain spaces and numbers.
  • For example, the word "Cheeseburger", and the phrase "I ate 6 cheeseburgers" are both strings. Even "54321" could be considered as a string, if specified correctly.
  • Typically, programmers must enclose strings in quotation marks, so the data is recognised as a string rather than a number or a variable.

#####Integers

  • An integer is a whole number (Not a fraction, or decimal).
  • Therefore, numbers like 1, 40, 0, and 48274 are all integers.
  • Numbers like 4.5 and -6.25 are not integers, as they cannot have a decimal place, or be fraction.

#####Floating Point

  • As the name implies, these are numbers with a floating decimal point (The decimal place 'floats' between the digits).
  • For example, 4.7, 0.0001, and -8765.0 are all floating point numbers
  • Numbers without a decimal place are integers

#####Boolean

  • A boolean is a data type that can have one of two values, true or false.
  • For example, true is a boolean, but "false" is not, as it has quotation marks, making it a string.