public abstract class AlleleEffect extends AlleleCategorized implements IAlleleBeeEffect
| Modifier | Constructor and Description |
|---|---|
protected |
AlleleEffect(java.lang.String valueName,
boolean isDominant) |
| Modifier and Type | Method and Description |
|---|---|
IEffectData |
doEffect(IBeeGenome genome,
IEffectData storedData,
IBeeHousing housing)
Called by apiaries to cause an effect in the world.
|
IEffectData |
doFX(IBeeGenome genome,
IEffectData storedData,
IBeeHousing housing)
Is called to produce visual bee effects.
|
static net.minecraft.util.math.AxisAlignedBB |
getBounding(IBeeGenome genome,
IBeeHousing housing) |
static <T extends net.minecraft.entity.Entity> |
getEntitiesInRange(IBeeGenome genome,
IBeeHousing housing,
java.lang.Class<T> entityClass) |
static net.minecraft.util.math.Vec3i |
getModifiedArea(IBeeGenome genome,
IBeeHousing housing) |
boolean |
isCombinable() |
IEffectData |
validateStorage(IEffectData storedData)
Returns the passed data storage if it is valid for this effect or a new one if the passed storage object was invalid for this effect.
|
getAlleleName, getModID, getName, getUID, getUnlocalizedName, isDominant, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAlleleName, getModID, getName, getUID, getUnlocalizedName, isDominantprotected AlleleEffect(java.lang.String valueName,
boolean isDominant)
public IEffectData validateStorage(IEffectData storedData)
IAlleleEffectvalidateStorage in interface IAlleleEffectIEffectData for the next cycle.public boolean isCombinable()
isCombinable in interface IAlleleEffectpublic IEffectData doEffect(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
IAlleleBeeEffectdoEffect in interface IAlleleBeeEffectgenome - Genome of the bee queen causing this effectstoredData - Object containing the stored effect data for the apiary/hive the bee is in.housing - IBeeHousing the bee currently resides in.public IEffectData doFX(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
IAlleleBeeEffectdoFX in interface IAlleleBeeEffectgenome - Genome of the bee queen causing this effectstoredData - Object containing the stored effect data for the apiary/hive the bee is in.housing - IBeeHousing the bee currently resides in.public static net.minecraft.util.math.Vec3i getModifiedArea(IBeeGenome genome, IBeeHousing housing)
public static net.minecraft.util.math.AxisAlignedBB getBounding(IBeeGenome genome, IBeeHousing housing)
public static <T extends net.minecraft.entity.Entity> java.util.List<T> getEntitiesInRange(IBeeGenome genome, IBeeHousing housing, java.lang.Class<T> entityClass)