public class GermSrcManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
GermSrcManager.RegisterType |
static class |
GermSrcManager.SrcData |
Constructor and Description |
---|
GermSrcManager() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getCacheUrls() |
static GermSrcManager |
getGermSrcManager() |
@Nullable org.bukkit.configuration.file.YamlConfiguration |
getSrc(java.lang.String yamlName,
RootType rootType)
根据文件名字获取源码
|
java.util.Set<GermSrcManager.SrcData> |
getSrcSets() |
java.util.Set<GermSrcManager.SrcData> |
getSrcSets(RootType rootType) |
void |
registerSrc(@Nullable java.io.File ymlFile,
@NotNull org.bukkit.configuration.file.YamlConfiguration yamlConfiguration,
@NotNull RootType rootType,
@NotNull java.lang.String yamlName)
源码注册
|
void |
registerSrc(GermAnimationPart<?> srcPart,
java.lang.String yamlName) |
void |
registerSrc(GermEffectPart<?> srcPart,
java.lang.String yamlName) |
void |
registerSrc(GermEntityPart<?> srcPart,
java.lang.String yamlName) |
void |
registerSrc(GermItemPart<?> srcPart,
java.lang.String yamlName)
应该在服务器开启的时候调用
注册之后会在玩家进服的时候发送数据给玩家 |
void |
registerSrc(@NotNull org.bukkit.configuration.file.YamlConfiguration yamlConfiguration,
@NotNull RootType rootType,
@NotNull java.lang.String yamlName)
源码注册
|
void |
registerSrcFolder(RootType rootType,
java.io.File dirFile)
注册一个文件夹 萌芽重载的时候会自动读取这个文件夹
你应该在JavaPlugin的onLoad中注册 |
void |
reloadRegister() |
void |
removeSrc(java.lang.String yamlName,
RootType rootType)
删除注册过的源码
|
public static GermSrcManager getGermSrcManager()
public java.util.Set<java.lang.String> getCacheUrls()
public java.util.Set<GermSrcManager.SrcData> getSrcSets()
public java.util.Set<GermSrcManager.SrcData> getSrcSets(RootType rootType)
public void removeSrc(java.lang.String yamlName, RootType rootType)
yamlName
- 文件名rootType
- 材质@Nullable public @Nullable org.bukkit.configuration.file.YamlConfiguration getSrc(java.lang.String yamlName, RootType rootType)
yamlName
- rootType
- public void reloadRegister()
public void registerSrc(GermItemPart<?> srcPart, java.lang.String yamlName)
srcPart
- 构建的javabean数据体yamlName
- 在删除的时候用的keypublic void registerSrc(GermEntityPart<?> srcPart, java.lang.String yamlName)
public void registerSrc(GermAnimationPart<?> srcPart, java.lang.String yamlName)
public void registerSrc(GermEffectPart<?> srcPart, java.lang.String yamlName)
public void registerSrcFolder(RootType rootType, java.io.File dirFile)
rootType
- dirFile
- public void registerSrc(@NotNull @NotNull org.bukkit.configuration.file.YamlConfiguration yamlConfiguration, @NotNull @NotNull RootType rootType, @NotNull @NotNull java.lang.String yamlName)
yamlConfiguration
- rootType
- yamlName
- public void registerSrc(@Nullable @Nullable java.io.File ymlFile, @NotNull @NotNull org.bukkit.configuration.file.YamlConfiguration yamlConfiguration, @NotNull @NotNull RootType rootType, @NotNull @NotNull java.lang.String yamlName)
yamlConfiguration
- rootType
- yamlName
-