- Did some API refactoring

- Added liquid container addition and removal (removal only possible in 1.6.4)
- Extended NEI support to 1.7.10
- Extended IC2 support to 1.6.4
This commit is contained in:
Stan Hebben committed 2014-07-05 22:35:19 +02:00
1 parent 115593efa5
commit 70cba6d84b
143 files changed
+3118 -632

No files matched your search

@@ -1,17 +1,12 @@
/*
* 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.data;
import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a boolean value (true or false).
*
* @author Stan Hebben
*/
public class DataBool implements IData {
private final boolean value;
@@ -1,17 +1,12 @@
/*
* 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.data;
import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a byte value (-128 .. 127)
*
* @author Stan Hebben
*/
public class DataByte implements IData {
private final byte value;
@@ -1,9 +1,3 @@
/*
* 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.data;
import java.util.ArrayList;
@@ -12,8 +6,9 @@ import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a byte array.
*
* @author Stan Hebben
*/
public class DataByteArray implements IData {
private final byte[] data;
@@ -1,17 +1,12 @@
/*
* 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.data;
import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a double-precision value.
*
* @author Stan Hebben
*/
public class DataDouble implements IData {
private final double value;
@@ -1,17 +1,12 @@
/*
* 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.data;
import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a single-precision floating point value.
*
* @author Stan Hebben
*/
public class DataFloat implements IData {
private final float value;
@@ -1,17 +1,12 @@
/*
* 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.data;
import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a 32-bit integer value.
*
* @author Stan Hebben
*/
public class DataInt implements IData {
private final int value;
@@ -1,9 +1,3 @@
/*
* 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.data;
import java.util.ArrayList;
@@ -12,8 +6,9 @@ import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains an int array.
*
* @author Stan Hebben
*/
public class DataIntArray implements IData {
private final int[] data;
@@ -1,9 +1,3 @@
/*
* 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.data;
import java.util.ArrayList;
@@ -12,8 +6,9 @@ import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a list.
*
* @author Stan Hebben
*/
public class DataList implements IData {
private final List<IData> values;
@@ -1,17 +1,12 @@
/*
* 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.data;
import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a 64-bit long value.
*
* @author Stan Hebben
*/
public class DataLong implements IData {
private final long value;
@@ -1,9 +1,3 @@
/*
* 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.data;
import java.util.Collections;
@@ -12,10 +6,13 @@ import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a map, mapping strings to data elements.
*
* @author Stan Hebben
*/
public class DataMap implements IData {
public static final DataMap EMPTY = new DataMap(new HashMap<String, IData>(), true);
private final Map<String, IData> data;
private final boolean immutable;
@@ -1,17 +1,12 @@
/*
* 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.data;
import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a 16-bit short value.
*
* @author Stan Hebben
*/
public class DataShort implements IData {
private final short value;
@@ -1,17 +1,12 @@
/*
* 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.data;
import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Contains a string value.
*
* @author Stan Hebben
*/
public class DataString implements IData {
private final String value;
@@ -1,9 +1,3 @@
/*
* 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.data;
import java.util.List;
@@ -18,8 +12,11 @@ import stanhebben.zenscript.annotations.OperatorType;
import stanhebben.zenscript.annotations.ZenMethod;
/**
*
* @author Stan
* Generic data interface. A data element may contain any kind of basic data
* element (bool, byte, short, int, long, float, double, string, list, map,
* int array or byte array). Used to store data with stacks, blocks, world, ...
*
* @author Stan Hebben
*/
@ZenClass("minetweaker.data.IData")
public interface IData {
@@ -1,17 +1,12 @@
/*
* 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.data;
import java.util.List;
import java.util.Map;
/**
*
* @author Stan
* Data converter interface. Used to convert data elements to other types.
*
* @author Stan Hebben
* @param <T> output type
*/
public interface IDataConverter<T> {