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.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.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.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random, LeafSettingsEntry leafSettings) static voidtrySpawnSnowParticle(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random, LeafSettingsEntry leafSettings)
-
Constructor Details
-
LeafUtil
public LeafUtil()
-
-
Method Details
-
trySpawnSnowParticle
public static void trySpawnSnowParticle(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random, @Nullable LeafSettingsEntry leafSettings) -
trySpawnLeafParticle
public static void trySpawnLeafParticle(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, 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.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.client.model.data.ModelData modelData)
-