- Removed the Transformer classes as transformation-based class detection is too slow

- Finished the RegisterZenClassesTask and applied it to the API & Mod support projects
- Started work on the events API
- Added a mod.info file
- Added mods detection API
This commit is contained in:
Stan Hebben committed 2014-06-25 11:54:08 +02:00
1 parent 8b00ce34b6
commit 0c535134c5
106 files changed
+2111 -444

No files matched your search

@@ -0,0 +1,45 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package minetweaker.api.event;
import minetweaker.api.item.IItemStack;
import minetweaker.api.player.IPlayer;
import minetweaker.api.recipes.ICraftingInventory;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenGetter;
/**
*
* @author Stan Hebben
*/
@ZenClass("minetweaker.event.PlayerCraftingEvent")
public class PlayerCraftedEvent {
private final IPlayer player;
private final IItemStack output;
private final ICraftingInventory inventory;
public PlayerCraftedEvent(IPlayer player, IItemStack output, ICraftingInventory inventory) {
this.player = player;
this.output = output;
this.inventory = inventory;
}
@ZenGetter("player")
public IPlayer getPlayer() {
return player;
}
@ZenGetter("output")
public IItemStack getOutput() {
return output;
}
@ZenGetter("inventory")
public ICraftingInventory getInventory() {
return inventory;
}
}