mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-20 03:59:38 +00:00
Added projects and basic build scripts. Project for scripting engine, API, Main 1.7 version and one for each mod supported in 1.7.
This commit is contained in:
1 parent
219106f392
commit
38b78ce305
281 files changed
+25090
-49
No files matched your search
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* 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.minecraft.data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import stanhebben.zenscript.annotations.ZenCaster;
|
||||
import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenGetter;
|
||||
import stanhebben.zenscript.annotations.ZenMemberGetter;
|
||||
import stanhebben.zenscript.annotations.ZenMemberSetter;
|
||||
import stanhebben.zenscript.annotations.ZenOperator;
|
||||
import stanhebben.zenscript.annotations.OperatorType;
|
||||
import stanhebben.zenscript.annotations.ZenMethod;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stan
|
||||
*/
|
||||
@ZenClass("minecraft.data.IData")
|
||||
public interface IData {
|
||||
@ZenOperator(OperatorType.ADD)
|
||||
public IData add(IData other);
|
||||
|
||||
@ZenOperator(OperatorType.SUB)
|
||||
public IData sub(IData other);
|
||||
|
||||
@ZenOperator(OperatorType.MUL)
|
||||
public IData mul(IData other);
|
||||
|
||||
@ZenOperator(OperatorType.DIV)
|
||||
public IData div(IData other);
|
||||
|
||||
@ZenOperator(OperatorType.MOD)
|
||||
public IData mod(IData other);
|
||||
|
||||
@ZenOperator(OperatorType.AND)
|
||||
public IData and(IData other);
|
||||
|
||||
@ZenOperator(OperatorType.OR)
|
||||
public IData or(IData other);
|
||||
|
||||
@ZenOperator(OperatorType.XOR)
|
||||
public IData xor(IData other);
|
||||
|
||||
@ZenOperator(OperatorType.NEG)
|
||||
public IData neg();
|
||||
|
||||
@ZenOperator(OperatorType.NOT)
|
||||
public IData not();
|
||||
|
||||
@ZenCaster
|
||||
public boolean asBool();
|
||||
|
||||
@ZenCaster
|
||||
public byte asByte();
|
||||
|
||||
@ZenCaster
|
||||
public short asShort();
|
||||
|
||||
@ZenCaster
|
||||
public int asInt();
|
||||
|
||||
@ZenCaster
|
||||
public long asLong();
|
||||
|
||||
@ZenCaster
|
||||
public float asFloat();
|
||||
|
||||
@ZenCaster
|
||||
public double asDouble();
|
||||
|
||||
@ZenCaster
|
||||
public String asString();
|
||||
|
||||
@ZenCaster
|
||||
public List<IData> asList();
|
||||
|
||||
@ZenCaster
|
||||
public Map<String, IData> asMap();
|
||||
|
||||
@ZenCaster
|
||||
public byte[] asByteArray();
|
||||
|
||||
@ZenCaster
|
||||
public int[] asIntArray();
|
||||
|
||||
@ZenOperator(OperatorType.INDEXGET)
|
||||
public IData getAt(int i);
|
||||
|
||||
@ZenOperator(OperatorType.INDEXSET)
|
||||
public void setAt(int i, IData value);
|
||||
|
||||
@ZenMemberGetter
|
||||
public IData memberGet(String name);
|
||||
|
||||
@ZenMemberSetter
|
||||
public void memberSet(String name, IData data);
|
||||
|
||||
@ZenGetter
|
||||
public int length();
|
||||
|
||||
@ZenOperator(OperatorType.CONTAINS)
|
||||
public boolean contains(IData data);
|
||||
|
||||
@ZenOperator(OperatorType.COMPARE)
|
||||
public int compareTo(IData data);
|
||||
|
||||
@ZenOperator(OperatorType.EQUALS)
|
||||
public boolean equals(IData data);
|
||||
|
||||
@ZenGetter
|
||||
public IData immutable();
|
||||
|
||||
@ZenMethod
|
||||
public IData update(IData data);
|
||||
|
||||
public <T> T convert(IDataConverter<T> converter);
|
||||
}
|
||||
Reference in new issue
Block a user