
Also, standardise getHandle and clean up in general. getHandle is now using the 'entity' member variable instead of super.getHandle, as this reduces the number of chained calls needed.
23 lines
634 B
Java
23 lines
634 B
Java
package org.bukkit.craftbukkit.entity;
|
|
|
|
import net.minecraft.server.EntityComplex;
|
|
import net.minecraft.server.EntityLiving;
|
|
import org.bukkit.craftbukkit.CraftServer;
|
|
import org.bukkit.entity.ComplexLivingEntity;
|
|
|
|
public abstract class CraftComplexLivingEntity extends CraftLivingEntity implements ComplexLivingEntity {
|
|
public CraftComplexLivingEntity(CraftServer server, EntityComplex entity) {
|
|
super(server, entity);
|
|
}
|
|
|
|
@Override
|
|
public EntityComplex getHandle() {
|
|
return (EntityComplex) entity;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "CraftComplexLivingEntity";
|
|
}
|
|
}
|