Git Product home page Git Product logo

smartcursor's Introduction

SmartCursor

Useful Minecraft mod with cursor utilities with own API. Full information on mods.io

This is unofficial version contributed by Himmelt.

API Tutorial:

Step 1.

At first step you should get API sources here: https://db.tt/W8xJ3fhH

Step 2.

Then you should to create new empty mod for MC 1.7.10 or MC 1.7.2.

Step 3.

Specify dependencies for mod:

Mod(modid = ..., dependencies="required-after:SmartCursor")

Step 4.

Create new empty class that implements one of:

  • IEntityProcessor
  • IBlockProcessor
  • IDropProcessor
  • IPlayerProcessor

Step 5.

Implement all necessary methods. Example:

package example.mod;

import java.util.List;
import net.minecraft.entity.Entity;
import com.asaskevich.smartcursor.api.IEntityProcessor;

public class ExampleModule implements IEntityProcessor {
  @Override
  public String getModuleName() {
    return "Example mod";
  }
  @Override
  public String getAuthor() {
    return "user";
  }
  @Override
  public void process(List list, Entity entity) {
    list.add("Some text");
  }
}

Step 6.

Connect your module to SmartCursor core:

import com.asaskevich.smartcursor.api.ModuleConnector;
...
ModuleConnector.connectModule(new ExampleModule());

Step 7.

Build and test your mod!

smartcursor's People

Contributors

asaskevich avatar guro2 avatar himmelt avatar modmuss50 avatar ubunterro avatar

Watchers

 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.