Class DyeableCloudyArmorItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.ArmorItem
All Implemented Interfaces:
Colored, Custom, Cloudy, LoreHolder, Registered, Registered.Client, Registered.Common, net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.item.DyeableItem, net.minecraft.item.Equipment, net.minecraft.item.ItemConvertible, net.minecraft.item.Vanishable, net.minecraft.resource.featuretoggle.ToggleableFeature

public class DyeableCloudyArmorItem extends CloudyArmorItem implements net.minecraft.item.DyeableItem
An armor item that implements the Cloudy interface and is dyeable.

This type is automatically registered.

Since:
1.4.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class dev.jaxydog.astral.content.item.AstralArmorItem

    AstralArmorItem.Material

    Nested classes/interfaces inherited from class net.minecraft.item.ArmorItem

    net.minecraft.item.ArmorItem.Type

    Nested classes/interfaces inherited from class net.minecraft.item.Item

    net.minecraft.item.Item.Settings

    Nested classes/interfaces inherited from interface dev.jaxydog.astral.register.Registered

    Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server
  • Field Summary

    Fields inherited from class net.minecraft.item.ArmorItem

    DISPENSER_BEHAVIOR, knockbackResistance, material, type

    Fields inherited from class net.minecraft.item.Item

    ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, DEFAULT_MAX_USE_TIME, ITEM_BAR_STEPS

    Fields inherited from interface dev.jaxydog.astral.content.item.custom.Cloudy

    COLOR_MAX, COLOR_MIN, STORMINESS_KEY, STORMINESS_LABEL_KEY

    Fields inherited from interface net.minecraft.item.DyeableItem

    COLOR_KEY, DEFAULT_COLOR, DISPLAY_KEY

    Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature

    FEATURE_ENABLED_REGISTRY_KEYS
  • Constructor Summary

    Constructors
    Constructor
    Description
    DyeableCloudyArmorItem(String path, net.minecraft.item.ArmorMaterial material, net.minecraft.item.ArmorItem.Type type, net.minecraft.item.Item.Settings settings)
    Creates a new armor item using the given settings.
    DyeableCloudyArmorItem(String path, net.minecraft.item.ArmorMaterial material, net.minecraft.item.ArmorItem.Type type, net.minecraft.item.Item.Settings settings, @Nullable Supplier<net.minecraft.registry.RegistryKey<net.minecraft.item.ItemGroup>> preferredGroup)
    Creates a new armor item using the given settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.item.ItemStack
     
    int
    getStackColor(net.minecraft.item.ItemStack stack, int index)
    Returns the color for the given stack at the provided layer index.
    void
    inventoryTick(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.Entity entity, int slot, boolean selected)
     

    Methods inherited from class dev.jaxydog.astral.content.item.custom.CloudyArmorItem

    appendTooltip, getArmorTextureLayers, getDecreaseDelta, getIncreaseDelta

    Methods inherited from class dev.jaxydog.astral.content.item.AstralArmorItem

    getItemGroup, getRegistryPath

    Methods inherited from class net.minecraft.item.ArmorItem

    canRepair, dispenseArmor, getAttributeModifiers, getEnchantability, getEquipSound, getMaterial, getProtection, getSlotType, getToughness, getType, use

    Methods inherited from class net.minecraft.item.Item

    asItem, byRawId, canBeNested, canMine, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getFoodComponent, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, isDamageable, isEnchantable, isFireproof, isFood, isItemBarVisible, isNbtSynced, isNetworkSynced, isSuitableFor, isUsedOnRelease, onClicked, onCraft, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, toString, usageTick, useOnBlock, useOnEntity

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface dev.jaxydog.astral.content.item.Colored

    registerClient

    Methods inherited from interface dev.jaxydog.astral.content.item.Custom

    registerCommon

    Methods inherited from interface net.minecraft.item.DyeableItem

    getColor, hasColor, removeColor, setColor

    Methods inherited from interface net.minecraft.item.Equipment

    equipAndSwap

    Methods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem

    allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableFor

    Methods inherited from interface net.minecraft.item.ItemConvertible

    asItem

    Methods inherited from interface dev.jaxydog.astral.content.item.LoreHolder

    formatLoreText, getLoreTooltips

    Methods inherited from interface dev.jaxydog.astral.register.Registered

    getRegistryId, getRegistryPath

    Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature

    isEnabled
  • Constructor Details

    • DyeableCloudyArmorItem

      public DyeableCloudyArmorItem(String path, net.minecraft.item.ArmorMaterial material, net.minecraft.item.ArmorItem.Type type, net.minecraft.item.Item.Settings settings, @Nullable @Nullable Supplier<net.minecraft.registry.RegistryKey<net.minecraft.item.ItemGroup>> preferredGroup)
      Creates a new armor item using the given settings.

      If the #preferredGroup supplier is null, this item will not be added to any item groups.

      Parameters:
      path - The item's identifier path.
      material - The armor's material.
      type - The armor's type.
      settings - The item's settings.
      preferredGroup - The item's preferred item group.
      Since:
      2.0.0
    • DyeableCloudyArmorItem

      public DyeableCloudyArmorItem(String path, net.minecraft.item.ArmorMaterial material, net.minecraft.item.ArmorItem.Type type, net.minecraft.item.Item.Settings settings)
      Creates a new armor item using the given settings.

      This item will not be added to any item groups.

      Parameters:
      path - The item's identifier path.
      material - The armor's material.
      type - The armor's type.
      settings - The item's settings.
      Since:
      1.4.0
  • Method Details

    • getStackColor

      public int getStackColor(net.minecraft.item.ItemStack stack, int index)
      Description copied from interface: Colored
      Returns the color for the given stack at the provided layer index.
      Specified by:
      getStackColor in interface Colored
      Overrides:
      getStackColor in class CloudyArmorItem
      Parameters:
      stack - The item stack.
      index - The index of the color layer.
      Returns:
      The layer's color.
    • inventoryTick

      public void inventoryTick(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.Entity entity, int slot, boolean selected)
      Overrides:
      inventoryTick in class CloudyArmorItem
    • getDefaultStack

      public net.minecraft.item.ItemStack getDefaultStack()
      Overrides:
      getDefaultStack in class net.minecraft.item.Item