Class SlimefunLocalization
java.lang.Object
net.guizhanss.guizhanlib.localization.Localization
net.guizhanss.guizhanlib.localization.MinecraftLocalization
net.guizhanss.guizhanlib.slimefun.addon.SlimefunLocalization
Localization service for Slimefun addons.
- Author:
- ybw0014
-
Constructor Summary
ConstructorsConstructorDescriptionSlimefunLocalization(JavaPlugin plugin) ConstructorSlimefunLocalization(JavaPlugin plugin, String folderName) ConstructorSlimefunLocalization(JavaPlugin plugin, String folderName, String langFile) Constructor -
Method Summary
Modifier and TypeMethodDescriptionio.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStackGet theSlimefunItemStackwith specified id and head texture.io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStackGet theSlimefunItemStackwith specified id andMaterial.io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStackGet theSlimefunItemStackwith specified id andMaterial.io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStackGet theSlimefunItemStackwith specified key, id and head texture.io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStackGet theSlimefunItemStackwith specified key, id andItemStack.io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStackGet theSlimefunItemStackwith specified key, id andMaterial.io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStackgetItemGroupItem(String id, String texture) Get theSlimefunItemStackfor ItemGroup.io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStackgetItemGroupItem(String id, ItemStack itemStack) Get theSlimefunItemStackfor ItemGroup.io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStackgetItemGroupItem(String id, Material material) Get theSlimefunItemStackfor ItemGroup.io.github.thebusybiscuit.slimefun4.api.recipes.RecipeTypegetRecipeType(String id, String texture, String... extraLore) Get theRecipeTypewith specified id and head texture.io.github.thebusybiscuit.slimefun4.api.recipes.RecipeTypegetRecipeType(String id, ItemStack itemStack, String... extraLore) Get theRecipeTypewith specified id andItemStack.io.github.thebusybiscuit.slimefun4.api.recipes.RecipeTypegetRecipeType(String id, Material material, String... extraLore) Get theRecipeTypewith specified id andMaterial.Methods inherited from class net.guizhanss.guizhanlib.localization.MinecraftLocalization
getString, getStringArray, getStringListMethods inherited from class net.guizhanss.guizhanlib.localization.Localization
addLanguage
-
Constructor Details
-
SlimefunLocalization
Constructor- Parameters:
plugin- TheJavaPlugininstance
-
SlimefunLocalization
Constructor- Parameters:
plugin- TheJavaPlugininstancefolderName- The name of the folder that holds all language files
-
SlimefunLocalization
@ParametersAreNonnullByDefault public SlimefunLocalization(JavaPlugin plugin, String folderName, String langFile) Constructor- Parameters:
plugin- TheJavaPlugininstancefolderName- The name of the folder that holds all language fileslangFile- The name of language file (without file extension .yml)
-
-
Method Details
-
getItemBy
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemBy(String key, String id, Material material, String... extraLore) Get theSlimefunItemStackwith specified key, id andMaterial. -
getItemBy
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemBy(String key, String id, String texture, String... extraLore) Get theSlimefunItemStackwith specified key, id and head texture.- Parameters:
key- The key to read item from in language file.id- The id of item.texture- The texture of head.extraLore- The extra lore to append to the end of current lore.- Returns:
- The
SlimefunItemStackwith specified id and head texture.
-
getItemBy
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemBy(String key, String id, ItemStack itemStack, String... extraLore) Get theSlimefunItemStackwith specified key, id andItemStack. -
getItemGroupItem
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemGroupItem(String id, Material material) Get theSlimefunItemStackfor ItemGroup. -
getItemGroupItem
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemGroupItem(String id, String texture) Get theSlimefunItemStackfor ItemGroup.- Parameters:
id- The id of category.texture- The texture of head.- Returns:
- The
SlimefunItemStackwith specified id andMaterial.
-
getItemGroupItem
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemGroupItem(String id, ItemStack itemStack) Get theSlimefunItemStackfor ItemGroup. -
getItem
public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItem(String id, Material material, String... extraLore) Get theSlimefunItemStackwith specified id andMaterial. -
getItem
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItem(String id, String texture, String... extraLore) Get theSlimefunItemStackwith specified id and head texture.- Parameters:
id- The id of item.texture- The texture of head.extraLore- The extra lore to append to the end of current lore.- Returns:
- The
SlimefunItemStackwith specified id and head texture.
-
getItem
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItem(String id, ItemStack itemStack, String... extraLore) Get theSlimefunItemStackwith specified id andMaterial. -
getRecipeType
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType getRecipeType(String id, Material material, String... extraLore) Get theRecipeTypewith specified id andMaterial. -
getRecipeType
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType getRecipeType(String id, String texture, String... extraLore) Get theRecipeTypewith specified id and head texture.- Parameters:
id- The id of item.texture- The texture of head.extraLore- The extra lore to append to the end of current lore.- Returns:
- The
RecipeTypewith specified id and head texture.
-
getRecipeType
@Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType getRecipeType(String id, ItemStack itemStack, String... extraLore) Get theRecipeTypewith specified id andItemStack.
-