Class ShiftingCrustRodItem

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

public class ShiftingCrustRodItem extends net.minecraft.world.item.Item implements WireframeCoordinateListProvider
  • 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, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    ShiftingCrustRodItem(net.minecraft.world.item.Item.Properties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canAttackBlock(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
     
    boolean
    canExchange(net.minecraft.world.item.ItemStack stack)
     
    void
    displayRemainderCounter(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    int
    exchange(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack rod, net.minecraft.world.item.Item replacement)
     
    static int
    getInventoryItemCount(net.minecraft.world.entity.player.Player player, net.minecraft.world.Container inv, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item requested)
     
    static int
    getInventoryItemCount(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item item)
     
    @NotNull net.minecraft.network.chat.Component
    getName(@NotNull net.minecraft.world.item.ItemStack stack)
     
    List<net.minecraft.core.BlockPos>
    getTargetPositions(net.minecraft.world.level.Level world, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item toPlace, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block toReplace, net.minecraft.core.Direction clickedSide)
     
    static net.minecraft.world.level.block.Block
    getTargetState(net.minecraft.world.item.ItemStack stack)
     
    List<net.minecraft.core.BlockPos>
    getWireframesToDraw(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    Returns a list of BlockPos for the wireframes to draw.
    void
    inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean equipped)
     
    net.minecraft.world.InteractionResult
    onLeftClick(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
     
    static net.minecraft.world.item.ItemStack
    removeFromInventory(net.minecraft.world.entity.player.Player player, net.minecraft.world.Container inv, net.minecraft.world.item.ItemStack tool, net.minecraft.world.item.Item requested, boolean doit)
     
    static net.minecraft.world.item.ItemStack
    removeFromInventory(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack tool, net.minecraft.world.item.Item item, boolean doit)
     
    @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, 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, use, 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 vazkii.botania.api.item.WireframeCoordinateListProvider

    getSourceWireframe
  • Constructor Details

    • ShiftingCrustRodItem

      public ShiftingCrustRodItem(net.minecraft.world.item.Item.Properties props)
  • 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
    • canAttackBlock

      public boolean canAttackBlock(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
      Overrides:
      canAttackBlock in class net.minecraft.world.item.Item
    • onLeftClick

      public net.minecraft.world.InteractionResult onLeftClick(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
    • 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 equipped)
      Overrides:
      inventoryTick in class net.minecraft.world.item.Item
    • getTargetPositions

      public List<net.minecraft.core.BlockPos> getTargetPositions(net.minecraft.world.level.Level world, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item toPlace, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block toReplace, net.minecraft.core.Direction clickedSide)
    • exchange

      public int exchange(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack rod, net.minecraft.world.item.Item replacement)
    • canExchange

      public boolean canExchange(net.minecraft.world.item.ItemStack stack)
    • removeFromInventory

      public static net.minecraft.world.item.ItemStack removeFromInventory(net.minecraft.world.entity.player.Player player, net.minecraft.world.Container inv, net.minecraft.world.item.ItemStack tool, net.minecraft.world.item.Item requested, boolean doit)
    • removeFromInventory

      public static net.minecraft.world.item.ItemStack removeFromInventory(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack tool, net.minecraft.world.item.Item item, boolean doit)
    • getInventoryItemCount

      public static int getInventoryItemCount(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item item)
    • getInventoryItemCount

      public static int getInventoryItemCount(net.minecraft.world.entity.player.Player player, net.minecraft.world.Container inv, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item requested)
    • displayRemainderCounter

      public void displayRemainderCounter(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    • getName

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

      public static net.minecraft.world.level.block.Block getTargetState(net.minecraft.world.item.ItemStack stack)
    • getWireframesToDraw

      public List<net.minecraft.core.BlockPos> getWireframesToDraw(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
      Description copied from interface: WireframeCoordinateListProvider
      Returns a list of BlockPos for the wireframes to draw. Will not be null.
      Specified by:
      getWireframesToDraw in interface WireframeCoordinateListProvider