com.parzivail.util.data.NamedBufferUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pswg Show documentation
Show all versions of pswg Show documentation
Explore the galaxy with Galaxies: Parzi's Star Wars Mod!
package com.parzivail.util.data;
import java.util.HashMap;
public class NamedBufferUtil
{
private static final HashMap floatBuffers = new HashMap<>();
private static final HashMap intBuffers = new HashMap<>();
public static float[] getF(String name, float... init)
{
if (!floatBuffers.containsKey(name))
floatBuffers.put(name, init);
return floatBuffers.get(name);
}
public static int[] getI(String name, int... init)
{
if (!intBuffers.containsKey(name))
intBuffers.put(name, init);
return intBuffers.get(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy