mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-22 21:09:56 +00:00
- Implemented item renaming
- Did a little bit of work on asset handling
This commit is contained in:
1 parent
3a9a784084
commit
9b51082c4b
16 files changed
+300
No files matched your search
@@ -13,6 +13,7 @@ import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenGetter;
|
||||
import stanhebben.zenscript.annotations.ZenMethod;
|
||||
import stanhebben.zenscript.annotations.ZenOperator;
|
||||
import stanhebben.zenscript.annotations.ZenSetter;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -29,6 +30,9 @@ public interface IItemStack extends IIngredient {
|
||||
@ZenGetter("displayName")
|
||||
public String getDisplayName();
|
||||
|
||||
@ZenSetter("displayName")
|
||||
public void setDisplayName(String name);
|
||||
|
||||
@ZenGetter("damage")
|
||||
public int getDamage();
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* 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.resource;
|
||||
|
||||
import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenGetter;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stan
|
||||
*/
|
||||
@ZenClass("minetweaker.resource.IResourceFile")
|
||||
public interface IResourceFile {
|
||||
@ZenGetter("name")
|
||||
public String getName();
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* 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.resource;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stan
|
||||
*/
|
||||
public interface IResourceManager {
|
||||
/**
|
||||
* Retrieves a resource file. Returns null if the resource dosen't exist.
|
||||
*
|
||||
* @param module
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public IResourceFile getResource(String module, String name);
|
||||
}
|
||||
Reference in new issue
Block a user