Package forestry.api.arboriculture
Interface IWoodType
- All Superinterfaces:
IBlockSubtype,IFeatureSubtype,IItemSubtype,net.minecraft.util.StringRepresentable
-
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 TypeMethodDescriptiondefault net.minecraft.sounds.SoundEventdefault net.minecraft.sounds.SoundEventfloatbooleansetDefaultLeaves(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.toString()Methods inherited from interface net.minecraft.util.StringRepresentable
getSerializedName
-
Method Details
-
getHardness
float getHardness() -
toString
String toString() -
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 overLevelAccessor.getRandom())owner- If this tree was planted by a player, then this is the player who planted the tree.nullotherwise.- 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()
-