Class WandOfTheForestItem

java.lang.Object
net.minecraft.world.item.Item
vazkii.botania.common.item.WandOfTheForestItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, CustomCreativeTabContents

public class WandOfTheForestItem extends net.minecraft.world.item.Item implements CustomCreativeTabContents
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    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
    Modifier and Type
    Field
    Description
    final net.minecraft.ChatFormatting
     

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

    ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    WandOfTheForestItem(net.minecraft.ChatFormatting formatting, net.minecraft.world.item.Item.Properties builder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addToCreativeTab(net.minecraft.world.item.Item me, net.minecraft.world.item.CreativeModeTab.Output output)
    Add this item and any variants to the creative tab
    static void
    doParticleBeam(net.minecraft.world.level.Level world, net.minecraft.world.phys.Vec3 orig, net.minecraft.world.phys.Vec3 end)
     
    static void
    doParticleBeamWithOffset(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos orig, net.minecraft.core.BlockPos end)
     
    static Optional<net.minecraft.core.BlockPos>
    getBindingAttempt(net.minecraft.world.item.ItemStack stack)
     
    static boolean
    getBindMode(net.minecraft.world.item.ItemStack stack)
     
    static int
    getColor1(net.minecraft.world.item.ItemStack stack)
     
    static int
    getColor2(net.minecraft.world.item.ItemStack stack)
     
    static String
    getModeString(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.network.chat.Component
    getName(@NotNull net.minecraft.world.item.ItemStack stack)
     
    void
    inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected)
     
    static void
    setBindingAttempt(net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos)
     
    static void
    setBindMode(net.minecraft.world.item.ItemStack stack, boolean bindMode)
     
    static net.minecraft.world.item.ItemStack
    setColors(net.minecraft.world.item.ItemStack wand, int color1, int color2)
     
    @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand)
     
    @NotNull net.minecraft.world.InteractionResult
    useOn(net.minecraft.world.item.context.UseOnContext ctx)
     

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

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, 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
  • Field Details

    • modeChatFormatting

      public final net.minecraft.ChatFormatting modeChatFormatting
  • Constructor Details

    • WandOfTheForestItem

      public WandOfTheForestItem(net.minecraft.ChatFormatting formatting, net.minecraft.world.item.Item.Properties builder)
  • Method Details

    • useOn

      @NotNull public @NotNull net.minecraft.world.InteractionResult useOn(net.minecraft.world.item.context.UseOnContext ctx)
      Overrides:
      useOn in class net.minecraft.world.item.Item
    • doParticleBeamWithOffset

      public static void doParticleBeamWithOffset(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos orig, net.minecraft.core.BlockPos end)
    • doParticleBeam

      public static void doParticleBeam(net.minecraft.world.level.Level world, net.minecraft.world.phys.Vec3 orig, net.minecraft.world.phys.Vec3 end)
    • inventoryTick

      public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected)
      Overrides:
      inventoryTick in class net.minecraft.world.item.Item
    • use

      @NotNull public @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand)
      Overrides:
      use in class net.minecraft.world.item.Item
    • addToCreativeTab

      public void addToCreativeTab(net.minecraft.world.item.Item me, net.minecraft.world.item.CreativeModeTab.Output output)
      Description copied from interface: CustomCreativeTabContents
      Add this item and any variants to the creative tab
      Specified by:
      addToCreativeTab in interface CustomCreativeTabContents
      Parameters:
      me - The item itself, for convenience when implementing this on a Block
    • getName

      public net.minecraft.network.chat.Component getName(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      getName in class net.minecraft.world.item.Item
    • setColors

      public static net.minecraft.world.item.ItemStack setColors(net.minecraft.world.item.ItemStack wand, int color1, int color2)
    • getColor1

      public static int getColor1(net.minecraft.world.item.ItemStack stack)
    • getColor2

      public static int getColor2(net.minecraft.world.item.ItemStack stack)
    • setBindingAttempt

      public static void setBindingAttempt(net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos)
    • getBindingAttempt

      public static Optional<net.minecraft.core.BlockPos> getBindingAttempt(net.minecraft.world.item.ItemStack stack)
    • getBindMode

      public static boolean getBindMode(net.minecraft.world.item.ItemStack stack)
    • setBindMode

      public static void setBindMode(net.minecraft.world.item.ItemStack stack, boolean bindMode)
    • getModeString

      public static String getModeString(net.minecraft.world.item.ItemStack stack)