mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-19 11:49:35 +00:00
The *FANCIEST* thing.
This commit is contained in:
1 parent
db012a812e
commit
d5f1d896ea
25 files changed
+406
-20
No files matched your search
@@ -0,0 +1,40 @@
|
||||
package fox.spiteful.avaritia.render;
|
||||
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
import org.apache.logging.log4j.Level;
|
||||
import org.lwjgl.BufferUtils;
|
||||
|
||||
import scala.actors.threadpool.Arrays;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import fox.spiteful.avaritia.Lumberjack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.client.event.TextureStitchEvent;
|
||||
|
||||
public class LudicrousRenderEvents {
|
||||
|
||||
private static final int cosmicCount = 10;
|
||||
public static String[] cosmicTextures = new String[cosmicCount];
|
||||
|
||||
static {
|
||||
for (int i=0; i<cosmicCount; i++) {
|
||||
cosmicTextures[i] = "avaritia:cosmic"+i;
|
||||
}
|
||||
}
|
||||
|
||||
public static FloatBuffer cosmicUVs = null;
|
||||
public static IIcon[] cosmicIcons = new IIcon[cosmicTextures.length];
|
||||
|
||||
@SubscribeEvent
|
||||
public void letsMakeAQuilt(TextureStitchEvent.Pre event) {
|
||||
if (event.map.getTextureType() == 0) { return; }
|
||||
|
||||
for (int i=0; i<cosmicTextures.length; i++) {
|
||||
IIcon icon = event.map.registerIcon(cosmicTextures[i]);
|
||||
cosmicIcons[i] = icon;
|
||||
}
|
||||
|
||||
//Lumberjack.log(Level.INFO, "COSMIC QUILTING: "+Arrays.toString(cosmicIcons));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user