Files
MagicBees/thaumicbees_src/thaumicbees/bees/genetics/EffectData.java
T
MysteriousAges bb5319f177 Many things.
*Added Moon phase influence for mutations
*New branch - Skulking
*Partial new branch - Vis (Aware only)
*Split TC Compat stuff into different package (Hopefully the only place I'll have to update stuff when TC3 API is out)
*Enhancing configs to add items to Thaumaturge's backpack & disable auto-adding of items to other backpacks
*New drops, legit way to craft Bottle o' Enchanting
*Removing BeeClassification - Bulit in stuff FTW.
2013-01-19 03:29:47 -08:00

88 lines
1.5 KiB
Java

package thaumicbees.bees.genetics;
import net.minecraft.nbt.NBTTagCompound;
import forestry.api.genetics.IEffectData;
public class EffectData implements IEffectData
{
private int[] intData;
private boolean[] boolData;
private float[] floatData;
public EffectData(int intCount, int boolCount, int floatCount)
{
this.intData = new int[intCount];
this.boolData = new boolean[boolCount];
this.floatData = new float[floatCount];
}
@Override
public void readFromNBT(NBTTagCompound nbttagcompound)
{ }
@Override
public void writeToNBT(NBTTagCompound nbttagcompound)
{ }
@Override
public void setInteger(int index, int val)
{
if (index >= 0 && index < this.intData.length)
{
this.intData[index] = val;
}
}
@Override
public void setFloat(int index, float val)
{
if (index >= 0 && index < this.floatData.length)
{
this.floatData[index] = val;
}
}
@Override
public void setBoolean(int index, boolean val)
{
if (index >= 0 && index < this.boolData.length)
{
this.boolData[index] = val;
}
}
@Override
public int getInteger(int index)
{
int val = 0;
if (index >= 0 && index < this.intData.length)
{
val = this.intData[index];
}
return val;
}
@Override
public float getFloat(int index)
{
float val = 0f;
if (index >= 0 && index < this.intData.length)
{
val = this.floatData[index];
}
return val;
}
@Override
public boolean getBoolean(int index)
{
boolean val = false;
if (index >= 0 && index < this.intData.length)
{
val = this.boolData[index];
}
return val;
}
}