Class SandPaperItem

java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.world.item.Item>
net.minecraft.world.item.Item
com.simibubi.create.content.curiosities.tools.SandPaperItem
All Implemented Interfaces:
CustomUseEffectsItem, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem, net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.item.Item>

@ParametersAreNonnullByDefault public class SandPaperItem extends net.minecraft.world.item.Item implements CustomUseEffectsItem
  • Nested Class Summary

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

    net.minecraft.world.item.Item.Properties

    Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>
  • Field Summary

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

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, category, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    delegate
  • Constructor Summary

    Constructors
    Constructor
    Description
    SandPaperItem(net.minecraft.world.item.Item.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPerformAction(net.minecraft.world.item.ItemStack stack, net.minecraftforge.common.ToolAction toolAction)
     
    net.minecraft.world.item.ItemStack
    finishUsingItem(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.LivingEntity entityLiving)
     
    net.minecraft.sounds.SoundEvent
     
    int
     
    int
    getItemEnchantability(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.UseAnim
    getUseAnimation(net.minecraft.world.item.ItemStack stack)
     
    int
    getUseDuration(net.minecraft.world.item.ItemStack stack)
     
    void
    initializeClient(Consumer<net.minecraftforge.client.IItemRenderProperties> consumer)
     
    void
    releaseUsing(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.LivingEntity entityLiving, int timeLeft)
     
    shouldTriggerUseEffects(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
    Called to determine if use effects should be applied for this item.
    static void
    spawnParticles(net.minecraft.world.phys.Vec3 location, net.minecraft.world.item.ItemStack polishedStack, net.minecraft.world.level.Level world)
     
    boolean
    triggerUseEffects(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity, int count, Random random)
    Called when use effects should be applied for this item.
    net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player playerIn, net.minecraft.world.InteractionHand handIn)
     
    net.minecraft.world.InteractionResult
    useOn(net.minecraft.world.item.context.UseOnContext context)
     

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

    allowdedIn, appendHoverText, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, fillItemCategory, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEquipSound, getFoodProperties, getId, getItemCategory, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTags, getTooltipImage, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, shouldOverrideMultiplayerNbt, toString, useOnRelease, verifyTagAfterLoad

    Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem

    canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getEntityLifespan, getEquipmentSlot, getHighlightTip, getItemStackLimit, getMaxDamage, getShareTag, getSweepHitBox, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Constructor Details

    • SandPaperItem

      public SandPaperItem(net.minecraft.world.item.Item.Properties properties)
  • Method Details

    • use

      public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player playerIn, net.minecraft.world.InteractionHand handIn)
      Overrides:
      use in class net.minecraft.world.item.Item
    • finishUsingItem

      public net.minecraft.world.item.ItemStack finishUsingItem(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.LivingEntity entityLiving)
      Overrides:
      finishUsingItem in class net.minecraft.world.item.Item
    • spawnParticles

      public static void spawnParticles(net.minecraft.world.phys.Vec3 location, net.minecraft.world.item.ItemStack polishedStack, net.minecraft.world.level.Level world)
    • releaseUsing

      public void releaseUsing(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.LivingEntity entityLiving, int timeLeft)
      Overrides:
      releaseUsing in class net.minecraft.world.item.Item
    • useOn

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

      public boolean canPerformAction(net.minecraft.world.item.ItemStack stack, net.minecraftforge.common.ToolAction toolAction)
      Specified by:
      canPerformAction in interface net.minecraftforge.common.extensions.IForgeItem
    • shouldTriggerUseEffects

      public Boolean shouldTriggerUseEffects(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
      Description copied from interface: CustomUseEffectsItem
      Called to determine if use effects should be applied for this item.
      Specified by:
      shouldTriggerUseEffects in interface CustomUseEffectsItem
      Parameters:
      stack - The ItemStack being used.
      entity - The LivingEntity using the item.
      Returns:
      null for default behavior, or boolean to override default behavior
    • triggerUseEffects

      public boolean triggerUseEffects(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity, int count, Random random)
      Description copied from interface: CustomUseEffectsItem
      Called when use effects should be applied for this item.
      Specified by:
      triggerUseEffects in interface CustomUseEffectsItem
      Parameters:
      stack - The ItemStack being used.
      entity - The LivingEntity using the item.
      count - The amount of times effects should be applied. Can safely be ignored.
      random - The LivingEntity's Random.
      Returns:
      if the default behavior should be cancelled or not
    • getEatingSound

      public net.minecraft.sounds.SoundEvent getEatingSound()
      Overrides:
      getEatingSound in class net.minecraft.world.item.Item
    • getUseAnimation

      public net.minecraft.world.item.UseAnim getUseAnimation(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getUseAnimation in class net.minecraft.world.item.Item
    • getUseDuration

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

      public int getItemEnchantability(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getItemEnchantability in interface net.minecraftforge.common.extensions.IForgeItem
    • getEnchantmentValue

      public int getEnchantmentValue()
      Overrides:
      getEnchantmentValue in class net.minecraft.world.item.Item
    • initializeClient

      public void initializeClient(Consumer<net.minecraftforge.client.IItemRenderProperties> consumer)
      Overrides:
      initializeClient in class net.minecraft.world.item.Item