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 :^)
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.
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.
- Create a new Class in the
dozer.events.impl
package. - Create a new method in the class, with the following signature:
public void EventName()
with any parameters you'd need.
- 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 - Add the following line of code:
Dozer.getSingleton().getEventBus().post(new EventName());
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;
}
}
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);
}
}
- Create a new Class in the
dozer.modules.impl.categoryName
package. - At the top of the class, add the following line of
code:
@ModuleInfo(name = "ModuleName", description = "ModuleDescription", category = ModuleCategory.CategoryName)
package dozer.module.impl.categoryName;
import dozer.module.Module;
@ModuleInfo(name = "ModuleName", description = "ModuleDescription", category = ModuleCategory.CategoryName)
public class ModuleName extends Module {
// Module code
}
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
}
}