Interface IBroomPart

All Known Implementing Classes:
BroomPartBase, BroomPartCapGem, BroomPartCapMetal, BroomPartModifier

public interface IBroomPart
A broom part.
  • Method Details

    • getType

      Returns:
      The part type.
    • getId

      net.minecraft.resources.ResourceLocation getId()
      Returns:
      The unique part identifier.
    • getTranslationKey

      String getTranslationKey()
      Returns:
      The unlocalized name.
    • getTooltipLine

      @Nullable net.minecraft.network.chat.Component getTooltipLine(String prefix)
      The line to be added to tooltips.
      Parameters:
      prefix - A line prefix
      Returns:
      The line, null if no line should be shown
    • getLength

      float getLength()
      Returns:
      The length of this part (1.0F = 1 block)
    • getRarity

      net.minecraft.world.item.Rarity getRarity()
      Returns:
      The rarity.
    • isEffect

      boolean isEffect()
      Returns:
      If the item has an effect overlay.
    • getModelColor

      int getModelColor()
      Returns:
      The tint of this part's model.
    • shouldAutoRegisterMissingItem

      boolean shouldAutoRegisterMissingItem()
      Returns:
      If an item for this part should be automatically registered if none has been provided.