- Extending API with chat functionality

- Refactoring towards MineTweakerMC calls
- Added IC2 matter amplifier support
This commit is contained in:
Stan Hebben committed 2014-06-29 16:18:50 +02:00
1 parent 7c478da1a2
commit ea0d369519
95 files changed
+1828 -547

No files matched your search

@@ -0,0 +1,23 @@
/*
* 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.chat;
import stanhebben.zenscript.annotations.OperatorType;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenOperator;
/**
*
* @author Stan
*/
@ZenClass("minetweaker.chat.IChatMessage")
public interface IChatMessage {
@ZenOperator(OperatorType.ADD)
public IChatMessage add(IChatMessage other);
public Object getInternal();
}
@@ -118,7 +118,9 @@ public interface IIngredient {
/**
* Gets the internal item backing this ingredient.
*
* The value is implementation-dependent.
* The value is implementation-dependent and should only be handled by
* the internal code. Don't use this value - instead, use the version-specific
* helper methods.
*
* @return internal item
*/
@@ -9,6 +9,7 @@ package minetweaker.api.oredict;
import minetweaker.api.item.IIngredient;
import minetweaker.api.item.IItemStack;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenGetter;
import stanhebben.zenscript.annotations.ZenMethod;
/**
@@ -17,6 +18,9 @@ import stanhebben.zenscript.annotations.ZenMethod;
*/
@ZenClass("minetweaker.oredict.IOreDictEntry")
public interface IOreDictEntry extends IIngredient {
@ZenGetter("empty")
public boolean isEmpty();
@ZenMethod
public void add(IItemStack item);
@@ -6,6 +6,7 @@
package minetweaker.api.player;
import minetweaker.api.chat.IChatMessage;
import minetweaker.api.data.IData;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenGetter;
@@ -25,4 +26,7 @@ public interface IPlayer {
@ZenMethod
public void update(IData data);
@ZenMethod
public void sendChat(IChatMessage message);
}