-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ReflectedNBTWrapper 1.1 Alpha Revision 2
- Added ReflectedNBTCompound#keyset() - Now ReflectedNBTList implements Iterable<Object> - Added LinearIterator - Changed package name to v1_1_R2
- Loading branch information
1 parent
6902a62
commit f06a812
Showing
23 changed files
with
101 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...f46/NBTUtil/v1_1R1/BukkitVersionUtil.java → ...f46/NBTUtil/v1_1R2/BukkitVersionUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...eption/CollectionMismatchedException.java → ...eption/CollectionMismatchedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._1R1/Exception/UndefinedNBTException.java → ..._1R2/Exception/UndefinedNBTException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...l/v1_1R1/Interface/IReflectedNBTBase.java → ...l/v1_1R2/Interface/IReflectedNBTBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
..._1R1/Interface/IReflectedNBTCompound.java → ..._1R2/Interface/IReflectedNBTCompound.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
package skywolf46.NBTUtil.v1_1R1.Interface; | ||
package skywolf46.NBTUtil.v1_1R2.Interface; | ||
|
||
import java.util.HashMap; | ||
import java.util.List; | ||
|
||
public interface IReflectedNBTCompound extends IReflectedNBTBase<HashMap<String, IReflectedNBTBase<?>>> { | ||
Object get(String str); | ||
IReflectedNBTBase<?> getNBT(String str); | ||
|
||
IReflectedNBTCompound set(String str,Object o); | ||
IReflectedNBTCompound setNBT(String str,IReflectedNBTBase<?> o); | ||
|
||
List<String> keyset(); | ||
} |
4 changes: 2 additions & 2 deletions
4
...l/v1_1R1/Interface/IReflectedNBTList.java → ...l/v1_1R2/Interface/IReflectedNBTList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...olf46/NBTUtil/v1_1R1/ItemNBTExtrator.java → ...olf46/NBTUtil/v1_1R2/ItemNBTExtrator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...olf46/NBTUtil/v1_1R1/ItemNBTImporter.java → ...olf46/NBTUtil/v1_1R2/ItemNBTImporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package skywolf46.NBTUtil.v1_1R2.Iterator; | ||
|
||
import java.util.Iterator; | ||
|
||
public class LinearIterator implements Iterator<Object> { | ||
private Object[] data; | ||
private int pointer; | ||
|
||
public LinearIterator(Object[] data) { | ||
this.data = data; | ||
} | ||
|
||
@Override | ||
public boolean hasNext() { | ||
return pointer >= data.length; | ||
} | ||
|
||
@Override | ||
public Object next() { | ||
return data[pointer++]; | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...Util/v1_1R1/NBTData/ReflectedNBTByte.java → ...Util/v1_1R2/NBTData/ReflectedNBTByte.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...v1_1R1/NBTData/ReflectedNBTByteArray.java → ...v1_1R2/NBTData/ReflectedNBTByteArray.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...il/v1_1R1/NBTData/ReflectedNBTDouble.java → ...il/v1_1R2/NBTData/ReflectedNBTDouble.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...til/v1_1R1/NBTData/ReflectedNBTFloat.java → ...til/v1_1R2/NBTData/ReflectedNBTFloat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...l/v1_1R1/NBTData/ReflectedNBTInteger.java → ...l/v1_1R2/NBTData/ReflectedNBTInteger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...1R1/NBTData/ReflectedNBTIntegerArray.java → ...1R2/NBTData/ReflectedNBTIntegerArray.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...Util/v1_1R1/NBTData/ReflectedNBTLong.java → ...Util/v1_1R2/NBTData/ReflectedNBTLong.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...v1_1R1/NBTData/ReflectedNBTLongArray.java → ...v1_1R2/NBTData/ReflectedNBTLongArray.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...til/v1_1R1/NBTData/ReflectedNBTShort.java → ...til/v1_1R2/NBTData/ReflectedNBTShort.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...il/v1_1R1/NBTData/ReflectedNBTString.java → ...il/v1_1R2/NBTData/ReflectedNBTString.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...6/NBTUtil/v1_1R1/ReflectedNBTStorage.java → ...6/NBTUtil/v1_1R2/ReflectedNBTStorage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters