CustomMob customMob = CustomMob.spawn("your_item", location)
if(customMob != null)
{
//spawned the custom mob
//example, print the display name in console
System.out.println(customMob.getName());
}
else
{
//no custom mob found with that id
}
Get custom mob by mob already spawned in the world
CustomMob customMob = CustomMob.byAlreadySpawned(entity)
if(customMob != null)
{
//it's a custom mob
//example, print the display name in console
System.out.println(customMob.getName());
}
else
{
//this mob is not a custom mob
}
Liquids API
Please also install IALiquids addon to have some test liquids