Class MysticalPetalItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.BlockItem
net.minecraft.world.item.ItemNameBlockItem
vazkii.botania.common.item.material.MysticalPetalItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, CustomApothecaryColor

public class MysticalPetalItem extends net.minecraft.world.item.ItemNameBlockItem implements CustomApothecaryColor
  • 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
    Modifier and Type
    Field
    Description
    final net.minecraft.world.item.DyeColor
     

    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
    MysticalPetalItem(net.minecraft.world.level.block.Block buriedPetals, net.minecraft.world.item.DyeColor color, net.minecraft.world.item.Item.Properties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getParticleColor(net.minecraft.world.item.ItemStack stack)
     
    static int
    getPetalLikeColor(net.minecraft.world.item.DyeColor color)
     

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

    getDescriptionId

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

    appendHoverText, canFitInsideContainerItems, canPlace, getBlock, getPlacementState, getPlaceSound, mustSurvive, onDestroyed, place, placeBlock, registerBlocks, requiredFeatures, setBlockEntityData, updateCustomBlockEntityTag, updateCustomBlockEntityTag, updatePlacementContext, useOn

    Methods 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, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, 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
  • Field Details

    • color

      public final net.minecraft.world.item.DyeColor color
  • Constructor Details

    • MysticalPetalItem

      public MysticalPetalItem(net.minecraft.world.level.block.Block buriedPetals, net.minecraft.world.item.DyeColor color, net.minecraft.world.item.Item.Properties props)
  • Method Details

    • getParticleColor

      public int getParticleColor(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getParticleColor in interface CustomApothecaryColor
    • getPetalLikeColor

      public static int getPetalLikeColor(net.minecraft.world.item.DyeColor color)