Package vazkii.botania.common.item.block
Class TinyPotatoBlockItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.BlockItem
vazkii.botania.common.item.block.TinyPotatoBlockItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,ItemWithBannerPattern
public class TinyPotatoBlockItem
extends net.minecraft.world.item.BlockItem
implements ItemWithBannerPattern
-
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
ConstructorsConstructorDescriptionTinyPotatoBlockItem(net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item.Properties props) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEquip(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot armorType, net.minecraft.world.entity.Entity entity) net.minecraft.tags.TagKey<net.minecraft.world.level.block.entity.BannerPattern> @Nullable net.minecraft.world.entity.EquipmentSlotgetEquipmentSlot(net.minecraft.world.item.ItemStack stack) voidinventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, int slotId, boolean isSelected) static booleanisEnchantedName(@NotNull net.minecraft.network.chat.Component name, @Nullable StringBuilder nameBuilder) booleanisFoil(@NotNull net.minecraft.world.item.ItemStack stack) static StringremoveFromFront(String name, String match) Methods inherited from class net.minecraft.world.item.BlockItem
appendHoverText, canFitInsideContainerItems, canPlace, getBlock, getDescriptionId, getPlacementState, getPlaceSound, mustSurvive, onDestroyed, place, placeBlock, registerBlocks, requiredFeatures, setBlockEntityData, updateCustomBlockEntityTag, updateCustomBlockEntityTag, updatePlacementContext, useOnMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, 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
isEnabled
-
Constructor Details
-
TinyPotatoBlockItem
public TinyPotatoBlockItem(net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item.Properties props)
-
-
Method Details
-
getBannerPattern
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.entity.BannerPattern> getBannerPattern()- Specified by:
getBannerPatternin interfaceItemWithBannerPattern
-
inventoryTick
public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, int slotId, boolean isSelected) - Overrides:
inventoryTickin classnet.minecraft.world.item.Item
-
isEnchantedName
public static boolean isEnchantedName(@NotNull @NotNull net.minecraft.network.chat.Component name, @Nullable @Nullable StringBuilder nameBuilder) -
removeFromFront
-
isFoil
public boolean isFoil(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
isFoilin classnet.minecraft.world.item.Item
-
getEquipmentSlot
@Nullable public @Nullable net.minecraft.world.entity.EquipmentSlot getEquipmentSlot(net.minecraft.world.item.ItemStack stack) -
canEquip
public boolean canEquip(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot armorType, net.minecraft.world.entity.Entity entity)
-