Home›Java›Mods›GeneralLib
[​IMG]
"WYSOHN" for 15% off any Minecraft servers.

Source Code

Check out for WIKI to start your plugin.

Spoiler: Brief Class information
  • org.generallib.array.utils -- only one Sort class
    • provide sorting for Map (regarding Value that implement Comparable interface)
  • org.generallib.binary.utils
    • LittleEndianReader
      • just a handy wrapper of ByteBuffer. It reads array of byte or modify the data.
  • org.generallib.database
    • Database
      • Abstract representation of Database. Key and Value pair
    • Observable
      • An interface to indicate the object as 'changed'. It can be used to evaluate which objects need to be updated and which objects are not.
    • DatabaseFile
      • Database using file; gson as serializer
    • DatabaseMysql
      • Database using mysql; gson as serializer
    • MiniConnectionPoolManager
      • for connection pooling of mysql.
    • DatabaseTransferTask
      • A data transfer manager. Accepts TransferPair. TransferPair can be instanciated with two Database; one is source Database and another is destination Database.

  • org.generallib.hash.utils
    • HashGeneratorUtils
      • like the name suggesting, provide hashing algorithm. All methods are static.

  • org.generallib.location.utils
    • LocationNormalizer
      • returns the location right middle of a provided location.

  • org.generallib.main
    • Dummy class for plugin load
  • org.generallib.math.expression
    • Parse and calculate expression from the String
  • org.generallib.pluginbase
    • Some classes to easily and quickly create new Plugins

  • org.generallib.possibility.utils
    • Calculate possibility.

  • org.generallib.packets.utils
    • Do not use it. Haven't updated since 1.8. Maybe will add some but not necessary as protocollib can do it.

  • org.generallib.reflection.utils
    • ReflectionHelper
      • Helping reflection (author: lishid)

  • org.generallib.serializetools
    • Abstract class FileSerialize
      • Provide FileConfiguration supporting utf-8

  • org.generallib.strings.utils
    • EnglishChecker
      • Provide string validations. isValidName checks if the given String is valid for Windows filename.
    • LoreOrganizer
      • Put lore into several lines if one sentence is too long.
Spoiler: ReflectionHelper.java
/*
* Copyright (C) 2011-2014 lishid. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see < http://www.gnu.org/licenses/>.
*/

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

GeneralLib is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 12,091 times (via Spigot). Download it and open it directly in the game.

Explore more