|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBaseEntity
LivingEntity
Mob
public class Mob extends LivingEntity
Mob.java - Interface for mobs
Constructor and Description |
---|
Mob(mj locallb)
Creates a mob interface |
Mob(java.lang.String mob)
Creates a mob interface |
Mob(java.lang.String mobName,
Location location)
Creates a mob interface |
Modifier and Type | Method and Description |
---|---|
void |
dropLoot()
Drops this mob's loot. |
mj |
getMob()
Returns the actual mob |
java.lang.String |
getName()
Returns this mob's name |
static boolean |
isValid(java.lang.String mob)
Checks to see if the mob is a valid mob |
void |
setHealth(int health)
Sets the entity's health. |
void |
spawn()
Spawns this mob |
void |
spawn(Mob rider)
Spawns this mob with a rider |
Methods inherited from class LivingEntity |
---|
getBaseNoDamageTicks, getDeathTicks, getEntity, getHealth, getLastDamage, increaseHealth, setBaseNoDamageTicks, setDeathTicks, setLastDamage |
Methods inherited from class BaseEntity |
---|
getAirTicks, getBaseAirTicks, getFireTicks, getId, getNoDamageTicks, getPitch, getPlayer, getRotation, getX, getY, getZ, isAnimal, isLiving, isMob, isPlayer, setAirTicks, setBaseAirTicks, setFireTicks, setNoDamageTicks, setPitch, setRotation, setX, setY, setZ, teleportTo, teleportTo, teleportTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mob(mj locallb)
locallb
- name of mobpublic Mob(java.lang.String mob)
mob
- name of mobpublic Mob(java.lang.String mobName, Location location)
mobName
- name of moblocation
- location of mobMethod Detail |
---|
public void spawn()
public void spawn(Mob rider)
rider
- public java.lang.String getName()
public void dropLoot()
public void setHealth(int health)
LivingEntity
setHealth
in class LivingEntity
public mj getMob()
public static boolean isValid(java.lang.String mob)
mob
- the mob to check
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |