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

项目: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    文件:CraftSlime.java   
public CraftSlime(CraftServer server, EntitySlime entity) {
    super(server, entity);
}
项目:CraftBukkit    文件:CraftSlime.java   
@Override
public EntitySlime getHandle() {
    return (EntitySlime) entity;
}
项目:Craftbukkit    文件:CraftSlime.java   
public CraftSlime(CraftServer server, EntitySlime entity) {
    super(server, entity);
}
项目:Craftbukkit    文件:CraftSlime.java   
@Override
public EntitySlime getHandle() {
    return (EntitySlime) entity;
}
项目:Almura-Server    文件:CraftSlime.java   
public CraftSlime(CraftServer server, EntitySlime entity) {
    super(server, entity);
}
项目:Almura-Server    文件:CraftSlime.java   
@Override
public EntitySlime getHandle() {
    return (EntitySlime) entity;
}
项目:Tweakkit-Server    文件:CraftSlime.java   
public CraftSlime(CraftServer server, EntitySlime entity) {
    super(server, entity);
}
项目:Tweakkit-Server    文件:CraftSlime.java   
@Override
public EntitySlime getHandle() {
    return (EntitySlime) entity;
}
项目:SpigotSource    文件:CraftSlime.java   
public CraftSlime(CraftServer server, EntitySlime entity) {
    super(server, entity);
}
项目:SpigotSource    文件:CraftSlime.java   
@Override
public EntitySlime getHandle() {
    return (EntitySlime) entity;
}
项目:Craft-city    文件:CraftSlime.java   
public CraftSlime(CraftServer server, EntitySlime entity) {
    super(server, entity);
}
项目:Craft-city    文件:CraftSlime.java   
@Override
public EntitySlime getHandle() {
    return (EntitySlime) entity;
}