mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-14 04:02:01 +01:00
Implement migration method
This commit is contained in:
parent
7c45b167c0
commit
3cff37e8fd
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user