Class RainbowArmorPiece
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.armor.SlimefunArmorPiece
io.github.thebusybiscuit.slimefun4.implementation.items.armor.RainbowArmorPiece
- All Implemented Interfaces:
Placeable
Represents a
SlimefunArmorPiece with rainbow properties (leather armor changing color).- Author:
- martinbrom
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionRainbowArmorPiece(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, DyeColor[] dyeColors) This creates a newRainbowArmorPiecefrom the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionColor[]Returns theColors thisRainbowArmorPiececycles betweenMethods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.armor.SlimefunArmorPiece
getPotionEffectsMethods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, callItemHandler, canUse, equals, error, getAddon, getBlockTicker, getById, getByItem, getDrops, getDrops, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, postRegister, preRegister, register, sendDeprecationWarning, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, toString, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
RainbowArmorPiece
@ParametersAreNonnullByDefault public RainbowArmorPiece(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, DyeColor[] dyeColors) This creates a newRainbowArmorPiecefrom the given arguments.- Parameters:
itemGroup- TheItemGroupthisRainbowArmorPiecebelongs toitem- TheSlimefunItemStackthat describes the visual features of ourRainbowArmorPiecerecipeType- theRecipeTypethat determines how thisRainbowArmorPieceis craftedrecipe- An Array representing the recipe of thisRainbowArmorPiecedyeColors- An Array representing theDyeColors thisRainbowArmorPiecewill cycle between
-
-
Method Details
-
getColors
Returns theColors thisRainbowArmorPiececycles between- Returns:
- The
Colors of thisRainbowArmorPiece
-