Class NPCConfiguration
- java.lang.Object
-
- eu.cloudnetservice.cloudnet.ext.npcs.configuration.NPCConfiguration
-
public class NPCConfiguration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,java.lang.String>DEFAULT_MESSAGESstatic NPCConfigurationEMPTY_CONFIGURATION
-
Constructor Summary
Constructors Constructor Description NPCConfiguration()NPCConfiguration(java.util.Collection<NPCConfigurationEntry> configurations, java.util.Map<java.lang.String,java.lang.String> messages)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<NPCConfigurationEntry>getConfigurations()java.util.Map<java.lang.String,java.lang.String>getMessages()static voidsendNPCConfigurationUpdate(@NotNull NPCConfiguration npcConfiguration)Updates the NPCConfiguration in the whole cluster
-
-
-
Field Detail
-
DEFAULT_MESSAGES
public static final java.util.Map<java.lang.String,java.lang.String> DEFAULT_MESSAGES
-
EMPTY_CONFIGURATION
public static final NPCConfiguration EMPTY_CONFIGURATION
-
-
Constructor Detail
-
NPCConfiguration
public NPCConfiguration()
-
NPCConfiguration
public NPCConfiguration(java.util.Collection<NPCConfigurationEntry> configurations, java.util.Map<java.lang.String,java.lang.String> messages)
-
-
Method Detail
-
sendNPCConfigurationUpdate
public static void sendNPCConfigurationUpdate(@NotNull @NotNull NPCConfiguration npcConfiguration)Updates the NPCConfiguration in the whole cluster- Parameters:
npcConfiguration- the new NPCConfiguration
-
getConfigurations
public java.util.Collection<NPCConfigurationEntry> getConfigurations()
-
getMessages
public java.util.Map<java.lang.String,java.lang.String> getMessages()
-
-