GithubHelp home page GithubHelp logo

pluginapi's Introduction

Plugin API

The pluginapi package houses tsgrissom's Bukkit plugin API to help create fast, intelligent, and powerful plugins for CraftBukkit servers.

Package pluginapi.chat

Use ClickTextBuilder and HoverTextBuilder to quickly generate Chat Component API TextComponents. Follows Java's builder pattern.

Use FormattedListBuilder classes to generate any of the following lists:

  • Comma-delimited lists
  • Multi-line lists
  • Plain text lists
  • Lists supporting fancy text (hover or click)

Use TextBoxBuilder to display data points within text boxes in the user's chat.

Package pluginapi.command

Combine CommandBase and CommandContext to replace CommandExecutor and its onCommand method.

CommandContext encapsulates the parameters of the onCommand method and provide many new functions to make designing commands much easier and more intuitive.

Sub-Package flag

CommandFlagParser can parse CommandContext arguments against specified ValidCommandFlag, enabling you to easily identify command flags passed within the current context, unknown flags, and more.

ValidCommandFlag simply enumerates what is considered a valid flag for a command. Construct and pass to your CommandFlagParser to determine if your valid flags were passed by the user at command-time.

Sub-Package help

Contains

Package pluginapi.conversation

An experimental package to interface with the Bukkit Conversation API. Mostly unused at the moment.

Package pluginapi.data

Contains Kotlin data classes.

QuotedStringSearchResult is the object resulting from checking for quoted Strings within a CommandContext.

Package pluginapi.extension

Contains many extension functions for both Kotlin and the Bukkit API.

Sub-Package bukkit

Sub-Package kt

Package pluginapi.functional

Contains custom classes for use with the functional programming paradigm of Kotlin/JVM.

Package pluginapi.utility

Contains utility classes which hold specialized functions that do not fall into other packages.

EntityUtility contains functions for categorizing and representing entity and their types.

TimeUtility contains functions for checking if inputs are valid times, converting between 12hr and 24hr clocks, etc.

pluginapi's People

Contributors

tsgrissom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.