Class LeafUtil
java.lang.Object
de.cheaterpaul.fallingleaves.util.LeafUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 booleanisLeafBlock(net.minecraft.world.level.block.state.BlockState block, boolean useBlockTags) Block tags can only be used once the integrated server is startedstatic voidtrySpawnLeafParticle(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)
-
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)
-