Class LeafUtil

java.lang.Object
de.cheaterpaul.fallingleaves.util.LeafUtil

public class LeafUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double[]
    averageColor(com.mojang.blaze3d.platform.NativeImage image)
     
    static double[]
    getBlockTextureColor(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData modelData)
     
    static boolean
    isLeafBlock(net.minecraft.world.level.block.state.BlockState block, boolean useBlockTags)
    Block tags can only be used once the integrated server is started
    static void
    trySpawnLeafParticle(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random, LeafSettingsEntry leafSettings)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LeafUtil

      public LeafUtil()
  • Method Details

    • trySpawnLeafParticle

      public static void trySpawnLeafParticle(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random, @Nullable LeafSettingsEntry leafSettings)
    • isLeafBlock

      public static boolean isLeafBlock(net.minecraft.world.level.block.state.BlockState block, boolean useBlockTags)
      Block tags can only be used once the integrated server is started
    • averageColor

      public static double[] averageColor(com.mojang.blaze3d.platform.NativeImage image)
    • getBlockTextureColor

      public static double[] getBlockTextureColor(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData modelData)