Giter Site home page Giter Site logo

biomemapping's Introduction

BiomeMapping Build Status

Use this library to replace biomes on newly generated worlds.

This project was made as there is no way to change biome generation through the Spigot / Bukkit API. It requires interaction with NMS and that is a pain in plugins where users have different versions of the server running.

Requirements

Java 8 and Bukkit / Spigot. Most server versions in the Spigot Repository are supported.

My version isn't supported

If you are a developer, submit a pull request adding a wrapper module for your version. Otherwise, please create an issue on the issues tab.

Usage

As a dependency

AnvilGUI requires the usage of Maven or a Maven compatible build system.

<dependency>
    <groupId>com.github.Mezy</groupId>
    <artifactId>BiomeMapping</artifactId>
    <version>master-SNAPSHOT</version>
</dependency>

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

In your plugin

The BiomeMappingAPI class is how you use the library. Simply make a new instance of that class and use the methods shown below.

replaceBiomes(Biome biomeA, Biome biomeB)

Takes two Biome enum arguments, and replaces the first with the second.

BiomeMappingAPI api = new BiomeMappingAPI();
api.replaceBiomes(Biome.OCEAN, Biome.FOREST);                                                

biomeSupported(Biome biome)

Takes a Biome enum argument and returns true if the biome is supported on the current minecraft version.

BiomeMappingAPI api = new BiomeMappingAPI();
if (api.biomeSupported(Biome.SOUL_SAND_VALLEY)){
    // This server version supports the SOUL_SAND_VALLEY biome.
}                                                    

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE.

Copyright Notice

Project structure and documentation partially taken from: https://github.com/WesJD/AnvilGUI

biomemapping's People

Contributors

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