ZNPCsPlus/plugin/src/main/java/lol/pyr/znpcsplus/ZNpcsPlusApi.java

37 lines
1.1 KiB
Java
Raw Normal View History

2023-05-21 11:33:45 +00:00
package lol.pyr.znpcsplus;
2023-05-21 12:45:43 +00:00
import lol.pyr.znpcsplus.api.NpcApi;
2023-05-21 15:41:38 +00:00
import lol.pyr.znpcsplus.api.entity.EntityPropertyRegistry;
2023-05-21 11:33:45 +00:00
import lol.pyr.znpcsplus.api.npc.NpcRegistry;
2023-05-21 15:41:38 +00:00
import lol.pyr.znpcsplus.api.npc.NpcTypeRegistry;
import lol.pyr.znpcsplus.entity.EntityPropertyRegistryImpl;
2023-05-21 11:33:45 +00:00
import lol.pyr.znpcsplus.npc.NpcRegistryImpl;
2023-05-21 15:41:38 +00:00
import lol.pyr.znpcsplus.npc.NpcTypeRegistryImpl;
2023-05-21 11:33:45 +00:00
public class ZNpcsPlusApi implements NpcApi {
2023-05-21 11:33:45 +00:00
private final NpcRegistryImpl npcRegistry;
2023-05-21 15:41:38 +00:00
private final NpcTypeRegistryImpl typeRegistry;
private final EntityPropertyRegistryImpl propertyRegistry;
2023-05-21 11:33:45 +00:00
public ZNpcsPlusApi(NpcRegistryImpl npcRegistry, NpcTypeRegistryImpl typeRegistry, EntityPropertyRegistryImpl propertyRegistry) {
2023-05-21 11:33:45 +00:00
this.npcRegistry = npcRegistry;
2023-05-21 15:41:38 +00:00
this.typeRegistry = typeRegistry;
this.propertyRegistry = propertyRegistry;
2023-05-21 11:33:45 +00:00
}
@Override
public NpcRegistry getNpcRegistry() {
return npcRegistry;
}
2023-05-21 15:41:38 +00:00
@Override
public NpcTypeRegistry getNpcTypeRegistry() {
return typeRegistry;
}
@Override
public EntityPropertyRegistry getPropertyRegistry() {
return propertyRegistry;
}
2023-05-21 11:33:45 +00:00
}