Interface IModelParticleProvider

All Superinterfaces:
net.minecraft.client.resources.model.BakedModel, net.neoforged.neoforge.client.extensions.IBakedModelExtension
All Known Implementing Classes:
AbstractBakedPropertiesModel, PerspectiveAwareBakedModel, PerspectiveAwareLayeredModel

public interface IModelParticleProvider extends net.minecraft.client.resources.model.BakedModel
Created by covers1624 on 12/07/2017.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<net.minecraft.client.renderer.texture.TextureAtlasSprite>
    getDestroyEffects(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.client.model.data.ModelData data)
    Used to retrieve the destroy particles for the block.
    Set<net.minecraft.client.renderer.texture.TextureAtlasSprite>
    getHitEffects(net.minecraft.world.phys.BlockHitResult traceResult, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.client.model.data.ModelData modelData)
    Used to retrieve the particles to randomly choose from for hit particles.
    default net.minecraft.client.renderer.texture.TextureAtlasSprite
     

    Methods inherited from interface net.minecraft.client.resources.model.BakedModel

    getOverrides, getQuads, getTransforms, isCustomRenderer, isGui3d, useAmbientOcclusion, usesBlockLight

    Methods inherited from interface net.neoforged.neoforge.client.extensions.IBakedModelExtension

    applyTransform, getModelData, getParticleIcon, getQuads, getRenderPasses, getRenderTypes, getRenderTypes, useAmbientOcclusion
  • Method Details

    • getParticleIcon

      default net.minecraft.client.renderer.texture.TextureAtlasSprite getParticleIcon()
      Specified by:
      getParticleIcon in interface net.minecraft.client.resources.model.BakedModel
    • getHitEffects

      Set<net.minecraft.client.renderer.texture.TextureAtlasSprite> getHitEffects(net.minecraft.world.phys.BlockHitResult traceResult, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.client.model.data.ModelData modelData)
      Used to retrieve the particles to randomly choose from for hit particles.
      Parameters:
      traceResult - The trace result.
      state - The state, getActualState and getExtendedState has been called.
      world - The world.
      pos - The pos.
      Returns:
      A Set of Textures to use.
    • getDestroyEffects

      Set<net.minecraft.client.renderer.texture.TextureAtlasSprite> getDestroyEffects(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.client.model.data.ModelData data)
      Used to retrieve the destroy particles for the block.
      Parameters:
      state - The state, getActualState and getExtendedState has been called.
      world - The world.
      pos - The pos.
      Returns:
      A Set of Textures to use.