SpecialMobs/src/main/java/fathertoast/specialmobs/common/entity/ISpecialMob.java

22 lines
837 B
Java
Raw Normal View History

2022-06-20 09:55:51 -05:00
package fathertoast.specialmobs.common.entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.pathfinding.PathNodeType;
2022-06-20 14:04:57 -05:00
import net.minecraft.util.ResourceLocation;
2022-06-20 09:55:51 -05:00
public interface ISpecialMob<T extends LivingEntity & ISpecialMob<T>> {
/** @return This mob's special data. */
SpecialMobData<T> getSpecialData();
2022-06-20 14:04:57 -05:00
/** @return The experience that should be dropped by this entity. */
2022-06-20 09:55:51 -05:00
int getExperience();
2022-06-20 14:04:57 -05:00
/** Sets the experience that should be dropped by this entity. */
2022-06-20 09:55:51 -05:00
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 );
2022-06-20 14:04:57 -05:00
/** @return All default textures for this entity. */
ResourceLocation[] getDefaultTextures();
2022-06-20 09:55:51 -05:00
}