Class CoconutItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.BlockItem
net.frozenblock.wilderwild.item.CoconutItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.item.ProjectileItem, net.minecraft.world.level.ItemLike

public class CoconutItem extends net.minecraft.world.item.BlockItem implements net.minecraft.world.item.ProjectileItem
  • 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

    Nested classes/interfaces inherited from interface net.minecraft.world.item.ProjectileItem

    net.minecraft.world.item.ProjectileItem.DispenseConfig, net.minecraft.world.item.ProjectileItem.PositionFunction
  • 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, CODEC, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTH

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    CoconutItem(@NotNull net.minecraft.world.level.block.Block block, @NotNull net.minecraft.world.item.Item.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.world.entity.projectile.Projectile
    asProjectile(net.minecraft.world.level.Level level, net.minecraft.core.Position position, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction)
     
    @NotNull net.minecraft.world.item.ProjectileItem.DispenseConfig
     
    @NotNull net.minecraft.world.InteractionResult
    use(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand usedHand)
     
    @NotNull net.minecraft.world.InteractionResult
    useOn(@NotNull net.minecraft.world.item.context.UseOnContext context)
     

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

    appendHoverText, canFitInsideContainerItems, canPlace, getBlock, getPlacementState, getPlaceSound, mustSurvive, onDestroyed, place, placeBlock, registerBlocks, requiredFeatures, setBlockEntityData, updateCustomBlockEntityTag, updateCustomBlockEntityTag, updatePlacementContext

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

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainder, getDamageSource, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isCorrectToolForDrops, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, 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.flag.FeatureElement

    isEnabled

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

    shoot
  • Constructor Details

    • CoconutItem

      public CoconutItem(@NotNull @NotNull net.minecraft.world.level.block.Block block, @NotNull @NotNull net.minecraft.world.item.Item.Properties properties)
  • Method Details

    • useOn

      @NotNull public @NotNull net.minecraft.world.InteractionResult useOn(@NotNull @NotNull net.minecraft.world.item.context.UseOnContext context)
      Overrides:
      useOn in class net.minecraft.world.item.BlockItem
    • use

      @NotNull public @NotNull net.minecraft.world.InteractionResult use(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand usedHand)
      Overrides:
      use in class net.minecraft.world.item.Item
    • asProjectile

      @NotNull public @NotNull net.minecraft.world.entity.projectile.Projectile asProjectile(net.minecraft.world.level.Level level, net.minecraft.core.Position position, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction)
      Specified by:
      asProjectile in interface net.minecraft.world.item.ProjectileItem
    • createDispenseConfig

      @NotNull public @NotNull net.minecraft.world.item.ProjectileItem.DispenseConfig createDispenseConfig()
      Specified by:
      createDispenseConfig in interface net.minecraft.world.item.ProjectileItem