Class CardboardSwordItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
net.minecraft.world.item.SwordItem
com.simibubi.create.content.equipment.tool.CardboardSwordItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IItemExtension

public class CardboardSwordItem extends net.minecraft.world.item.SwordItem
  • Nested Class Summary

    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 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
    CardboardSwordItem(net.minecraft.world.item.Item.Properties pProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cardboardSwordsCannotHurtYou(net.neoforged.neoforge.event.entity.player.AttackEntityEvent event)
     
    static void
    cardboardSwordsMakeNoiseOnClick(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.LeftClickBlock event)
     
    int
    getBurnTime(net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.world.item.crafting.RecipeType<?> recipeType)
     
    void
    initializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer)
     
    static void
    knockback(net.minecraft.world.entity.LivingEntity target, double knockbackStrength, float yRot)
     
    boolean
    supportsEnchantment(net.minecraft.world.item.ItemStack stack, net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment)
     

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

    canAttackBlock, canPerformAction, createAttributes, createAttributes, createToolProperties, hurtEnemy, postHurtEnemy

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

    getEnchantmentValue, getTier, isValidRepairItem

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

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isRepairable, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, toString, use, useOn, 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.flag.FeatureElement

    isEnabled

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

    applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, 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
  • Constructor Details

    • CardboardSwordItem

      public CardboardSwordItem(net.minecraft.world.item.Item.Properties pProperties)
  • Method Details

    • getBurnTime

      public int getBurnTime(net.minecraft.world.item.ItemStack itemStack, @Nullable @Nullable net.minecraft.world.item.crafting.RecipeType<?> recipeType)
    • supportsEnchantment

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

      public static void cardboardSwordsMakeNoiseOnClick(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.LeftClickBlock event)
    • cardboardSwordsCannotHurtYou

      public static void cardboardSwordsCannotHurtYou(net.neoforged.neoforge.event.entity.player.AttackEntityEvent event)
    • knockback

      public static void knockback(net.minecraft.world.entity.LivingEntity target, double knockbackStrength, float yRot)
    • initializeClient

      public void initializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer)
      Overrides:
      initializeClient in class net.minecraft.world.item.Item