Interface TilesetManager<T>
-
public interface TilesetManager<T>TilesetManager holds and manages tilesets
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget(int index)Returns a tileset by tileset indexintgetIndexByName(String modName, String tilesetName)Gets the internal tileset index by resource name.voidprocessEntityDef()voidreset()
-
-
-
Method Detail
-
getIndexByName
int getIndexByName(String modName, String tilesetName)
Gets the internal tileset index by resource name. This index is needed for certain tileset based RenderingBo.- Parameters:
modName- It can be either a specific mod name or you can leave it null. Null enables a cumulative approach, so the tileset is taken from the last mod that provides it. This way other mods are able to override tilesets.tilesetName- Name of the tileset image file, for example "official_0.png". Providing paths is not supported and will be filtered out.
-
get
T get(int index)
Returns a tileset by tileset index
-
processEntityDef
@RestrictedMethod void processEntityDef()
-
reset
@RestrictedMethod void reset()
-
-