mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-21 12:32:29 +00:00
- Refactored code into different packages
- Fixed some non-static expansion methods - Fixed scripts not reloading properly - Implemented mod support build system - Fixed recipe removal breaking on recipes without predefined output - Fixed NPE on parsing a bracket expression that doesn't exist - now prints an appropriate error
This commit is contained in:
1 parent
1789aa74b5
commit
2de467d7d8
93 files changed
+321
-262
No files matched your search
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* 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
|
||||
* @param <T> output type
|
||||
*/
|
||||
public interface IDataConverter<T> {
|
||||
public T fromBool(boolean value);
|
||||
|
||||
public T fromByte(byte value);
|
||||
|
||||
public T fromShort(short value);
|
||||
|
||||
public T fromInt(int value);
|
||||
|
||||
public T fromLong(long value);
|
||||
|
||||
public T fromFloat(float value);
|
||||
|
||||
public T fromDouble(double value);
|
||||
|
||||
public T fromString(String value);
|
||||
|
||||
public T fromList(List<IData> values);
|
||||
|
||||
public T fromMap(Map<String, IData> values);
|
||||
|
||||
public T fromByteArray(byte[] value);
|
||||
|
||||
public T fromIntArray(int[] value);
|
||||
}
|
||||
Reference in new issue
Block a user