Enum Class ModHarvestHandlers.TreePart

java.lang.Object
java.lang.Enum<ModHarvestHandlers.TreePart>
me.desht.pneumaticcraft.common.core.ModHarvestHandlers.TreePart
All Implemented Interfaces:
Serializable, Comparable<ModHarvestHandlers.TreePart>, Constable
Enclosing class:
ModHarvestHandlers

public static enum ModHarvestHandlers.TreePart extends Enum<ModHarvestHandlers.TreePart>
  • Enum Constant Details

  • Method Details

    • values

      public static ModHarvestHandlers.TreePart[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ModHarvestHandlers.TreePart valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • convert

      public net.minecraft.world.level.block.Block convert(net.minecraft.world.level.block.Block in, ModHarvestHandlers.TreePart to)
      Given a block which is part of tree (log, leaves, or sapling), try to get a different part of the same tree. This is dependent on the blocks being consistently named (vanilla does this properly): "XXX_log", "XXX_leaves", "XXX_sapling".
      Parameters:
      in - the block to convert
      to - the new part to convert to
      Returns:
      a block for the new part