Interface ParticleRenderEvents.AllowTerrainParticleTint

Enclosing class:
ParticleRenderEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ParticleRenderEvents.AllowTerrainParticleTint
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allowTerrainParticleTint(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos)
    Checks whether a terrain particle can be tinted using the corresponding block's BlockTintSource.
  • Method Details

    • allowTerrainParticleTint

      boolean allowTerrainParticleTint(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos)
      Checks whether a terrain particle can be tinted using the corresponding block's BlockTintSource.
      Parameters:
      state - the block state that the particle represents
      level - the level the particle is created in
      pos - the position of the particle
      Returns:
      true if block color tinting should be allowed, false otherwise