Class BacktankItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ArmorItem
com.simibubi.create.content.equipment.armor.BaseArmorItem
com.simibubi.create.content.equipment.armor.BacktankItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.item.Equipable, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IItemExtension
Direct Known Subclasses:
BacktankItem.Layered

public class BacktankItem extends BaseArmorItem
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

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

    net.minecraft.world.item.ArmorItem.Type

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

    net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final net.minecraft.world.entity.EquipmentSlot
     
    static final net.minecraft.world.item.ArmorItem.Type
     

    Fields inherited from class com.simibubi.create.content.equipment.armor.BaseArmorItem

    textureLoc

    Fields inherited from class net.minecraft.world.item.ArmorItem

    DISPENSE_ITEM_BEHAVIOR, material, type

    Fields inherited from class net.minecraft.world.item.Item

    ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    BacktankItem(net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> material, net.minecraft.world.item.Item.Properties properties, net.minecraft.resources.ResourceLocation textureLoc, Supplier<BacktankItem.BacktankBlockItem> placeable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getBarColor(net.minecraft.world.item.ItemStack stack)
     
    int
    getBarWidth(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.level.block.Block
     
    static int
    getRemainingAir(net.minecraft.world.item.ItemStack stack)
     
    static @Nullable BacktankItem
    getWornBy(net.minecraft.world.entity.Entity entity)
     
    boolean
    isBarVisible(net.minecraft.world.item.ItemStack stack)
     
    boolean
    isEnchantable(net.minecraft.world.item.ItemStack p_77616_1_)
     
    boolean
    supportsEnchantment(net.minecraft.world.item.ItemStack stack, net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment)
     
    net.minecraft.world.InteractionResult
    useOn(net.minecraft.world.item.context.UseOnContext ctx)
     

    Methods inherited from class com.simibubi.create.content.equipment.armor.BaseArmorItem

    getArmorTexture

    Methods inherited from class net.minecraft.world.item.ArmorItem

    dispenseArmor, getDefaultAttributeModifiers, getDefense, getEnchantmentValue, getEquipmentSlot, getEquipSound, getMaterial, getToughness, getType, isValidRepairItem, use

    Methods inherited from class net.minecraft.world.item.Item

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBreakingSound, getCraftingRemainingItem, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isFoil, isRepairable, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, useOnRelease, verifyComponentsAfterLoad

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.world.item.Equipable

    swapWithEquipmentSlot

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension

    applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canFitInsideContainerItems, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Field Details

    • SLOT

      public static final net.minecraft.world.entity.EquipmentSlot SLOT
    • TYPE

      public static final net.minecraft.world.item.ArmorItem.Type TYPE
    • BAR_COLOR

      public static final int BAR_COLOR
      See Also:
  • Constructor Details

    • BacktankItem

      public BacktankItem(net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> material, net.minecraft.world.item.Item.Properties properties, net.minecraft.resources.ResourceLocation textureLoc, Supplier<BacktankItem.BacktankBlockItem> placeable)
  • Method Details

    • getWornBy

      @Nullable public static @Nullable BacktankItem getWornBy(net.minecraft.world.entity.Entity entity)
    • useOn

      public net.minecraft.world.InteractionResult useOn(net.minecraft.world.item.context.UseOnContext ctx)
      Overrides:
      useOn in class net.minecraft.world.item.Item
    • isEnchantable

      public boolean isEnchantable(net.minecraft.world.item.ItemStack p_77616_1_)
      Overrides:
      isEnchantable in class net.minecraft.world.item.Item
    • supportsEnchantment

      public boolean supportsEnchantment(net.minecraft.world.item.ItemStack stack, net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment)
    • isBarVisible

      public boolean isBarVisible(net.minecraft.world.item.ItemStack stack)
      Overrides:
      isBarVisible in class net.minecraft.world.item.Item
    • getBarWidth

      public int getBarWidth(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getBarWidth in class net.minecraft.world.item.Item
    • getBarColor

      public int getBarColor(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getBarColor in class net.minecraft.world.item.Item
    • getBlock

      public net.minecraft.world.level.block.Block getBlock()
    • getRemainingAir

      public static int getRemainingAir(net.minecraft.world.item.ItemStack stack)