SpecialMobs/src/main/java/fathertoast/specialmobs/common/entity/ISpecialMob.java
2022-07-10 16:07:07 -05:00

23 lines
No EOL
842 B
Java

package fathertoast.specialmobs.common.entity;
import fathertoast.specialmobs.common.bestiary.MobFamily;
import net.minecraft.entity.LivingEntity;
import net.minecraft.pathfinding.PathNodeType;
public interface ISpecialMob<T extends LivingEntity & ISpecialMob<T>> {
/** @return This mob's special data. */
SpecialMobData<T> getSpecialData();
/** @return This mob's species. */
MobFamily.Species<? extends T> getSpecies();
/** @return The experience that should be dropped by this entity. */
int getExperience();
/** Sets the experience that should be dropped by this entity. */
void setExperience( int xp );
/** Sets the entity's pathfinding malus for a particular node type; negative value is un-walkable. */
void setPathfindingMalus( PathNodeType nodeType, float malus );
}