GithubHelp home page GithubHelp logo

client-beta1.7.3's Introduction

Dozer

Notes

Note Source made public, I simply don't have the motivation to continue working on this project to be perfectly honest. Feel free to make forks, pull requests, and issues. I'll try my best to maintain it I guess :^)

What is it?

Dozer is a modified client for the Minecraft game, version beta 1.7.3. It is a fork of the Minecraft Coder Pack, which is a set of tools for modding the game. Dozer is a fork of MCP, and is intended to be a utility mod for the 2beta2t.net minecraft server.

How do I use it?

Dozer's default key bind for it's ClickGUI is RSHIFT / RIGHT SHIFT. You can change this by middle-clicking the module you wish to change the key bind of.

How to add an event

Creating the event class

  1. Create a new Class in the dozer.events.impl package.
  2. Create a new method in the class, with the following signature: public void EventName() with any parameters you'd need.

Registering the event

  1. Head to the class and method you want to register the event to e.g net.minecraft.src.entity.EntityPlayer.java:54 (For the onUpdate event
  2. Add the following line of code: Dozer.getSingleton().getEventBus().post(new EventName());

Creating the event class

Example:

package dozer.event.impl;

public class EventName {
    
    public int someInt; // Some int
    
    /**
     * Constructor for the event
     * @param someInt Some int
     */
    public EventName(int someInt) {
        this.someInt = someInt;
    }
    
    /**
     * @return the someInt
     */
    public int getSomeInt() {
        return someInt;
    }
    
}

Registering the event

Example:

package net.minecraft.src;

import net.minecraft.src.entity.EntityLiving;

public class EntityPlayer extends EntityLiving {

  public void onUpdate() {
    Dozer.getSingleton().getEventBus().post(new EventName(1));
  }

}

or

package net.minecraft.src;

import net.minecraft.src.entity.EntityLiving;

public class EntityPlayer extends EntityLiving {

  public void onUpdate() {
    EventName event = new EventName(1);
    Dozer.getSingleton().getEventBus().post(event);
  }

}

How to add a module

Creating the module class

  1. Create a new Class in the dozer.modules.impl.categoryName package.
  2. At the top of the class, add the following line of code: @ModuleInfo(name = "ModuleName", description = "ModuleDescription", category = ModuleCategory.CategoryName)

Example:

package dozer.module.impl.categoryName;

import dozer.module.Module;

@ModuleInfo(name = "ModuleName", description = "ModuleDescription", category = ModuleCategory.CategoryName)
public class ModuleName extends Module {
    
    // Module code
    
}

Calling an Event in a module

Example:

package dozer.module.impl.categoryName;

import dozer.event.Subscribe;
import dozer.event.impl.EventName;

@ModuleInfo(name = "ModuleName", description = "ModuleDescription", category = ModuleCategory.CategoryName)
public class ModuleName extends Module {

    @Subscribe
    public void onEventName(EventName event) {
        // Module code
    }

}

client-beta1.7.3's People

Contributors

qe7 avatar squaretetrisblock avatar signam 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.