Implement migration method

This commit is contained in:
fullwall 2013-11-06 11:37:15 +08:00
parent ceda94a0e5
commit 7246e4935e

View File

@ -9,6 +9,7 @@ import net.citizensnpcs.api.ai.speech.Talkable;
import net.citizensnpcs.api.ai.speech.VocalChord;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import com.google.common.base.Preconditions;
@ -65,6 +66,10 @@ public class CitizensSpeechFactory implements SpeechFactory {
return new TalkableEntity(entity);
}
public Talkable newTalkableEntity(LivingEntity entity) {
return newTalkableEntity((Entity) entity);
}
@Override
public void register(Class<? extends VocalChord> clazz, String name) {
Preconditions.checkNotNull(name, "info cannot be null");