Package vazkii.botania.common.item.rod
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_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAttackBlock(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) booleancanExchange(net.minecraft.world.item.ItemStack stack) voiddisplayRemainderCounter(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) intexchange(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 intgetInventoryItemCount(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 intgetInventoryItemCount(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item item) net.minecraft.network.chat.ComponentgetName(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.BlockgetTargetState(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.voidinventoryTick(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.InteractionResultonLeftClick(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.ItemStackremoveFromInventory(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.ItemStackremoveFromInventory(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack tool, net.minecraft.world.item.Item item, boolean doit) net.minecraft.world.InteractionResultuseOn(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, 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 vazkii.botania.api.item.WireframeCoordinateListProvider
getSourceWireframe
-
Constructor Details
-
ShiftingCrustRodItem
public ShiftingCrustRodItem(net.minecraft.world.item.Item.Properties props)
-
-
Method Details
-
useOn
public net.minecraft.world.InteractionResult useOn(net.minecraft.world.item.context.UseOnContext ctx) - Overrides:
useOnin classnet.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:
canAttackBlockin classnet.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:
inventoryTickin classnet.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
public net.minecraft.network.chat.Component getName(net.minecraft.world.item.ItemStack stack) - Overrides:
getNamein classnet.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:WireframeCoordinateListProviderReturns a list of BlockPos for the wireframes to draw. Will not be null.- Specified by:
getWireframesToDrawin interfaceWireframeCoordinateListProvider
-