Interface IWoodType

All Superinterfaces:
IBlockSubtype, IFeatureSubtype, IItemSubtype, net.minecraft.util.StringRepresentable

public interface IWoodType extends IBlockSubtype, IItemSubtype
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable

    net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable>
  • Field Summary

    Fields inherited from interface net.minecraft.util.StringRepresentable

    PRE_BUILT_MAP_THRESHOLD
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.sounds.SoundEvent
     
    default net.minecraft.sounds.SoundEvent
     
    float
     
    boolean
    setDefaultLeaves(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, IGenome genome, net.minecraft.util.RandomSource rand, com.mojang.authlib.GameProfile owner)
    Sets a leaf block when the genome is known to be the default genome of the species.
     

    Methods inherited from interface net.minecraft.util.StringRepresentable

    getSerializedName
  • Method Details

    • getHardness

      float getHardness()
    • toString

      String toString()
      Overrides:
      toString in class Object
    • setDefaultLeaves

      boolean setDefaultLeaves(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, IGenome genome, net.minecraft.util.RandomSource rand, @Nullable com.mojang.authlib.GameProfile owner)
      Sets a leaf block when the genome is known to be the default genome of the species.
      Parameters:
      level - The world. (Could be during world generation, so be careful about thread deadlock)
      pos - The position to set the leaf at.
      genome - The default genome of the species.
      rand - The random. (Could be world generation random, so prefer this over LevelAccessor.getRandom())
      owner - If this tree was planted by a player, then this is the player who planted the tree. null otherwise.
      Returns:
      Whether the placement was successful. Typically the same return value as LevelWriter.setBlock(net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, int, int).
    • getFenceGateOpenSound

      default net.minecraft.sounds.SoundEvent getFenceGateOpenSound()
    • getFenceGateCloseSound

      default net.minecraft.sounds.SoundEvent getFenceGateCloseSound()