Class SlimefunLocalization


public class SlimefunLocalization extends MinecraftLocalization
Localization service for Slimefun addons.
Author:
ybw0014
  • Constructor Details

    • SlimefunLocalization

      @ParametersAreNonnullByDefault public SlimefunLocalization(JavaPlugin plugin)
      Constructor
      Parameters:
      plugin - The JavaPlugin instance
    • SlimefunLocalization

      @ParametersAreNonnullByDefault public SlimefunLocalization(JavaPlugin plugin, String folderName)
      Constructor
      Parameters:
      plugin - The JavaPlugin instance
      folderName - The name of the folder that holds all language files
    • SlimefunLocalization

      @ParametersAreNonnullByDefault public SlimefunLocalization(JavaPlugin plugin, String folderName, String langFile)
      Constructor
      Parameters:
      plugin - The JavaPlugin instance
      folderName - The name of the folder that holds all language files
      langFile - 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 the SlimefunItemStack with specified key, id and Material.
      Parameters:
      key - The key to read item from in language file.
      id - The id of item.
      material - The Material of item.
      extraLore - The extra lore to append to the end of current lore.
      Returns:
      The SlimefunItemStack with specified id and Material.
    • getItemBy

      @Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemBy(String key, String id, String texture, String... extraLore)
      Get the SlimefunItemStack with 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 SlimefunItemStack with 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 the SlimefunItemStack with specified key, id and ItemStack.
      Parameters:
      key - The key to read item from in language file.
      id - The id of item.
      itemStack - The ItemStack.
      extraLore - The extra lore to append to the end of current lore.
      Returns:
      The SlimefunItemStack with specified id and ItemStack.
    • getItemGroupItem

      @Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemGroupItem(String id, Material material)
      Get the SlimefunItemStack for ItemGroup.
      Parameters:
      id - The id of category.
      material - The Material of item.
      Returns:
      The SlimefunItemStack with specified id and Material.
    • getItemGroupItem

      @Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemGroupItem(String id, String texture)
      Get the SlimefunItemStack for ItemGroup.
      Parameters:
      id - The id of category.
      texture - The texture of head.
      Returns:
      The SlimefunItemStack with specified id and Material.
    • getItemGroupItem

      @Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItemGroupItem(String id, ItemStack itemStack)
      Get the SlimefunItemStack for ItemGroup.
      Parameters:
      id - The id of category.
      itemStack - The ItemStack of item.
      Returns:
      The SlimefunItemStack with specified id and Material.
    • getItem

      public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItem(String id, Material material, String... extraLore)
      Get the SlimefunItemStack with specified id and Material.
      Parameters:
      id - The id of item.
      material - The Material of item.
      extraLore - The extra lore to append to the end of current lore.
      Returns:
      The SlimefunItemStack with specified id and Material.
    • getItem

      @Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItem(String id, String texture, String... extraLore)
      Get the SlimefunItemStack with 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 SlimefunItemStack with specified id and head texture.
    • getItem

      @Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack getItem(String id, ItemStack itemStack, String... extraLore)
      Get the SlimefunItemStack with specified id and Material.
      Parameters:
      id - The id of item.
      itemStack - The ItemStack.
      extraLore - The extra lore to append to the end of current lore.
      Returns:
      The SlimefunItemStack with specified id and ItemStack.
    • getRecipeType

      @Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType getRecipeType(String id, Material material, String... extraLore)
      Get the RecipeType with specified id and Material.
      Parameters:
      id - The id of item.
      material - The Material of item.
      extraLore - The extra lore to append to the end of current lore.
      Returns:
      The RecipeType with specified id and Material.
    • getRecipeType

      @Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType getRecipeType(String id, String texture, String... extraLore)
      Get the RecipeType with 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 RecipeType with specified id and head texture.
    • getRecipeType

      @Nonnull @ParametersAreNonnullByDefault public io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType getRecipeType(String id, ItemStack itemStack, String... extraLore)
      Get the RecipeType with specified id and ItemStack.
      Parameters:
      id - The id of item.
      itemStack - The ItemStack.
      extraLore - The extra lore to append to the end of current lore.
      Returns:
      The RecipeType with specified id and ItemStack.