Class DivingHelmetItem
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.DivingHelmetItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.item.Equipable,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IItemExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.ArmorItem
net.minecraft.world.item.ArmorItem.TypeNested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.entity.EquipmentSlotstatic final net.minecraft.world.item.ArmorItem.TypeFields inherited from class com.simibubi.create.content.equipment.armor.BaseArmorItem
textureLocFields inherited from class net.minecraft.world.item.ArmorItem
DISPENSE_ITEM_BEHAVIOR, material, typeFields 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_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionDivingHelmetItem(net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> material, net.minecraft.world.item.Item.Properties properties, net.minecraft.resources.ResourceLocation textureLoc) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbreatheUnderwater(net.neoforged.neoforge.event.entity.living.LivingBreatheEvent event) net.minecraft.world.item.enchantment.ItemEnchantmentsgetAllEnchantments(net.minecraft.world.item.ItemStack stack, net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> lookup) intgetEnchantmentLevel(net.minecraft.world.item.ItemStack stack, net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment) static net.minecraft.world.item.ItemStackgetWornItem(net.minecraft.world.entity.Entity entity) static booleanisWornBy(net.minecraft.world.entity.Entity entity) booleansupportsEnchantment(net.minecraft.world.item.ItemStack stack, net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment) Methods inherited from class com.simibubi.create.content.equipment.armor.BaseArmorItem
getArmorTextureMethods inherited from class net.minecraft.world.item.ArmorItem
dispenseArmor, getDefaultAttributeModifiers, getDefense, getEnchantmentValue, getEquipmentSlot, getEquipSound, getMaterial, getToughness, getType, isValidRepairItem, useMethods inherited from class net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isRepairable, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, useOn, useOnRelease, verifyComponentsAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.item.Equipable
swapWithEquipmentSlotMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension
applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canFitInsideContainerItems, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, 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
-
-
Constructor Details
-
DivingHelmetItem
public DivingHelmetItem(net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> material, net.minecraft.world.item.Item.Properties properties, net.minecraft.resources.ResourceLocation textureLoc)
-
-
Method Details
-
supportsEnchantment
public boolean supportsEnchantment(net.minecraft.world.item.ItemStack stack, net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment) -
getEnchantmentLevel
public int getEnchantmentLevel(net.minecraft.world.item.ItemStack stack, net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment) -
getAllEnchantments
public net.minecraft.world.item.enchantment.ItemEnchantments getAllEnchantments(net.minecraft.world.item.ItemStack stack, net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> lookup) -
isWornBy
public static boolean isWornBy(net.minecraft.world.entity.Entity entity) -
getWornItem
public static net.minecraft.world.item.ItemStack getWornItem(net.minecraft.world.entity.Entity entity) -
breatheUnderwater
public static void breatheUnderwater(net.neoforged.neoforge.event.entity.living.LivingBreatheEvent event)
-