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.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallowTerrainParticleTint(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 representslevel- the level the particle is created inpos- the position of the particle- Returns:
trueif block color tinting should be allowed,falseotherwise
-