Java 类net.minecraft.server.EntityMonster 实例源码

项目:Almura-Server    文件:ActivationRange.java   
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    if ( entity instanceof EntityMonster || entity instanceof EntitySlime )
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbient )
    {
        return 2; // Animal
    } else
    {
        return 3; // Misc
    }
}
项目:Tweakkit-Server    文件:ActivationRange.java   
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    if ( entity instanceof EntityMonster || entity instanceof EntitySlime )
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbient )
    {
        return 2; // Animal
    } else
    {
        return 3; // Misc
    }
}
项目:SpigotSource    文件:ActivationRange.java   
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    if ( entity instanceof EntityMonster || entity instanceof EntitySlime )
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbient )
    {
        return 2; // Animal
    } else
    {
        return 3; // Misc
    }
}
项目:CraftBukkit    文件:CraftMonster.java   
public CraftMonster(CraftServer server, EntityMonster entity) {
    super(server, entity);
}
项目:CraftBukkit    文件:CraftMonster.java   
@Override
public EntityMonster getHandle() {
    return (EntityMonster) entity;
}
项目:Craftbukkit    文件:CraftMonster.java   
public CraftMonster(CraftServer server, EntityMonster entity) {
    super(server, entity);
}
项目:Craftbukkit    文件:CraftMonster.java   
@Override
public EntityMonster getHandle() {
    return (EntityMonster) entity;
}
项目:Almura-Server    文件:CraftMonster.java   
public CraftMonster(CraftServer server, EntityMonster entity) {
    super(server, entity);
}
项目:Almura-Server    文件:CraftMonster.java   
@Override
public EntityMonster getHandle() {
    return (EntityMonster) entity;
}
项目:Tweakkit-Server    文件:CraftMonster.java   
public CraftMonster(CraftServer server, EntityMonster entity) {
    super(server, entity);
}
项目:Tweakkit-Server    文件:CraftMonster.java   
@Override
public EntityMonster getHandle() {
    return (EntityMonster) entity;
}
项目:SpigotSource    文件:CraftMonster.java   
public CraftMonster(CraftServer server, EntityMonster entity) {
    super(server, entity);
}
项目:SpigotSource    文件:CraftMonster.java   
@Override
public EntityMonster getHandle() {
    return (EntityMonster) entity;
}
项目:Craft-city    文件:CraftMonster.java   
public CraftMonster(CraftServer server, EntityMonster entity) {
    super(server, entity);
}
项目:Craft-city    文件:CraftMonster.java   
@Override
public EntityMonster getHandle() {
    return (EntityMonster) entity;
}