Casts
Overview
mc.theWorld.getLoadedEntityList()
.forEach((entity) => {
// Not every entity in this list is an Animal/Player/Mob!
if(entity.is('EntityLivingBase')) {
// Example: print the entity's hurt time, which is only available for
// living entities - EntitiyLivingBase
client.clientChatMessage(entity.getName() + ": " + entity.as('EntityLivingBase').hurtTime);
}
});Required Methods
Type
Name
Description
Signature
Last updated