Package de.extio.spacecraft.shared.bo
Interface EntityModSupport<T extends AbstractEntityMod>
-
public interface EntityModSupport<T extends AbstractEntityMod>Handler for entity mods. This class can be created with EntityModSupportFactory and is usually part of the state of an entity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEntityMod(int entityModDefIndex, AbstractEntity parent)<U extends AbstractEntityDef>
doubleapplyEntityDefModD(HasEntityMod<T> hasEntityMod, double value, BiFunction<T,Double,Double> entityModFunction)<U extends AbstractEntityDef>
doubleapplyEntityDefModD(HasEntityMod<T> hasEntityMod, Function<U,Double> entityDefValueSupplier, BiFunction<T,Double,Double> entityModFunction)<U extends AbstractEntityDef>
intapplyEntityDefModI(HasEntityMod<T> hasEntityMod, int value, BiFunction<T,Integer,Integer> entityModFunction)<U extends AbstractEntityDef>
intapplyEntityDefModI(HasEntityMod<T> hasEntityMod, Function<U,Integer> entityDefValueSupplier, BiFunction<T,Integer,Integer> entityModFunction)TgetEntityMod()voidlocalCopy(AbstractEntity other)voidremoveEntityMod()voidupdate(AbstractEntity other, AbstractEntity parent)
-
-
-
Method Detail
-
addEntityMod
void addEntityMod(int entityModDefIndex, AbstractEntity parent)
-
removeEntityMod
void removeEntityMod()
-
update
void update(AbstractEntity other, AbstractEntity parent)
-
localCopy
void localCopy(AbstractEntity other)
-
applyEntityDefModI
<U extends AbstractEntityDef> int applyEntityDefModI(HasEntityMod<T> hasEntityMod, int value, BiFunction<T,Integer,Integer> entityModFunction)
-
applyEntityDefModI
<U extends AbstractEntityDef> int applyEntityDefModI(HasEntityMod<T> hasEntityMod, Function<U,Integer> entityDefValueSupplier, BiFunction<T,Integer,Integer> entityModFunction)
-
applyEntityDefModD
<U extends AbstractEntityDef> double applyEntityDefModD(HasEntityMod<T> hasEntityMod, double value, BiFunction<T,Double,Double> entityModFunction)
-
applyEntityDefModD
<U extends AbstractEntityDef> double applyEntityDefModD(HasEntityMod<T> hasEntityMod, Function<U,Double> entityDefValueSupplier, BiFunction<T,Double,Double> entityModFunction)
-
getEntityMod
T getEntityMod()
-
-