mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-08 08:33:37 +02:00
36 lines
918 B
Java
36 lines
918 B
Java
package powercrystals.minefactoryreloaded.api;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
|
|
/**
|
|
* Defines a handler for mob spawns from the autospawner. Added primarily to
|
|
* solve item duping on exact spawn & entity inventories
|
|
*
|
|
* @author skyboy
|
|
*/
|
|
public interface IMobSpawnHandler {
|
|
|
|
/**
|
|
* @return The class that this instance is handling.
|
|
*/
|
|
public Class<? extends EntityLivingBase> getMobClass();
|
|
|
|
/**
|
|
* Called when a mob has been spawned normally.
|
|
*
|
|
* @param entity
|
|
* The entity instance being spawned. Typically your regular
|
|
* spawn code 100% handles this
|
|
*/
|
|
public void onMobSpawn(EntityLivingBase entity);
|
|
|
|
/**
|
|
* Called when an exact copy of an entity has been made.
|
|
*
|
|
* @param entity
|
|
* The entity instance being exact-copied. Clear your inventories
|
|
* & etc. here
|
|
*/
|
|
public void onMobExactSpawn(EntityLivingBase entity);
|
|
}
|