Package net.frozenblock.wilderwild.item
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.TooltipContextNested 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_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionCoconutItem(@NotNull net.minecraft.world.level.block.Block block, @NotNull net.minecraft.world.item.Item.Properties properties) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.entity.projectile.ProjectileasProjectile(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.InteractionResultuse(@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.InteractionResultuseOn(@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, updatePlacementContextMethods 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, verifyComponentsAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods 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:
useOnin classnet.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:
usein classnet.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:
asProjectilein interfacenet.minecraft.world.item.ProjectileItem
-
createDispenseConfig
@NotNull public @NotNull net.minecraft.world.item.ProjectileItem.DispenseConfig createDispenseConfig()- Specified by:
createDispenseConfigin interfacenet.minecraft.world.item.ProjectileItem
-