Giter Site home page Giter Site logo

minecraft__dev-launchers-library's Introduction

DevLaunchers Library

A Library for the Development of Minecraft Paper plugins.

Features

  • Custom Made Plugin class called DevLaunchersPlugin
    Extends default JavaPlugin by providing custom getConfig() Methods and exposing the ItemRepository easily.
  • Provides a ItemRepository for Plugins to share Item Definitions with each other (Example: Byte Economy "Byte$")
    Preferres Use of Enums for Naming (e.g. DevLauncherItem)

Examples

Main Class

public class TestPlugin extends DevLaunchersPlugin {
  
  @Override
  public static void onEnable(){
    // Reads default values of items.yml inside the jar if it exists
    // In all Instances it will try to read the config from plugins/{PluginName}/{configName}
    DevLauncherConfiguration itemConfig = getConfig("items.yml");
    // Registers Item read from the Config with the Identifier "TEST_ITEM"
    registerItem(DevLauncherItem.TEST_ITEM, itemConfig.getItemStack("test.item"));
    
    ItemStack testItem = getItem(DevLauncherItem.TEST_ITEM);
  }
}

items.yml

test:
  item:
    material: COMPASS
    amount: 1
    lore:
      - "§fTesting..."
    meta:
      displayName: "§aTest Item"

Maven

Add Jitpack Repository

<repository>
  <id>jitpack.io</id>
  <url>https://jitpack.io</url>
</repository>

Add Dependency

<dependency>
  <groupId>com.github.dev-launchers</groupId>
  <artifactId>minecraft__dev-launchers-library</artifactId>
  <version>v0.0.2</version>
</dependency>

Contributing

Code Style

For this Repository the Google Java Code Style with Version 1.6 is enforced on Pull Requests.
There are Plugins for IntelliJ and Eclipse that format it correctly already. If you have problems with this just ask Zorro909 for some help. (Also available over Discord)

Pull Requests

For larger Pull Requests a Issue should first be created to discuss the problem/feature at hand. Small Changes may directly create a Pull Request with a description of what they changed and why.

minecraft__dev-launchers-library's People

Contributors

zorro909 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.