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
ConstructorDescriptionRainbowArmorPiece
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, DyeColor[] dyeColors) This creates a newRainbowArmorPiece
from the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionColor[]
Returns theColor
s thisRainbowArmorPiece
cycles betweenMethods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.armor.SlimefunArmorPiece
getPotionEffects
Methods 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, warn
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 newRainbowArmorPiece
from the given arguments.- Parameters:
itemGroup
- TheItemGroup
thisRainbowArmorPiece
belongs toitem
- TheSlimefunItemStack
that describes the visual features of ourRainbowArmorPiece
recipeType
- theRecipeType
that determines how thisRainbowArmorPiece
is craftedrecipe
- An Array representing the recipe of thisRainbowArmorPiece
dyeColors
- An Array representing theDyeColor
s thisRainbowArmorPiece
will cycle between
-
-
Method Details
-
getColors
Returns theColor
s thisRainbowArmorPiece
cycles between- Returns:
- The
Color
s of thisRainbowArmorPiece
-