Git Product home page Git Product logo

bmutils's Introduction

BMUtils

A small library with a collection of useful functions for BlueMap addons.

Should work with any plugin/mod-loader. Currently only tested with Paper. Please let me know if you have any issues when using other platforms!

Installation

Visit https://jitpack.io/#TechnicJelle/BMUtils for details on how to install this library.

Usage

Please see the javadoc for the full API reference: technicjelle.com/BMUtils

Copy Jar Resource to BlueMap

This function copies any resource file from your jar to the BlueMap assets folder.
Useful for adding custom icons, scripts, or styles from your own addon.

copyJarResourceToBlueMap(BlueMapAPI, ClassLoader, String fromResource, String toAsset, boolean overwrite)

Copy Any File to BlueMap

This function copies any file to the BlueMap assets folder.
Useful for copying user-provided assets to BlueMap, from a configuration directory for example.

copyFileToBlueMap(BlueMapAPI, Path from, String toAsset, boolean overwrite)

Copy Any Stream to BlueMap

This function copies any stream to the BlueMap assets folder.
Useful for when you have a stream of data, for example from a URL.

copyStreamToBlueMap(BlueMapAPI, InputStream in, String toAsset, boolean overwrite)

Get Player Head Icon Address

This function returns the address of a player head icon.
Useful when you want to use a playerhead from the map. For example, when adding custom icons to the map that involve the player head.

getPlayerHeadIconAddress(BlueMapAPI, UUID playerUUID, BlueMapMap blueMapMap)

Contributing

If you have any suggestions for more useful functions to add, please let me know by creating an issue on GitHub.

To get support with this library, join the BlueMap Discord server and ask your questions in #3rd-party-support. You're welcome to ping me, @TechnicJelle.

bmutils's People

Contributors

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