Interface PartParticleHandler<P>

All Known Subinterfaces:
StandardPartParticleHandler<P>
All Known Implementing Classes:
McStatePartParticleHandler, MicroblockPartParticleHandler

public interface PartParticleHandler<P>
Created by covers1624 on 7/26/26.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addDestroyEffects(P part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine)
    Add particles and other effects when a player finishes breaking this part.
    default void
    addHitEffects(P part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine)
    Add particles and other effects when a player is mining this part.
    default void
    addLandingEffects(P part, PartRayTraceResult hit, codechicken.lib.vec.Vector3 entity, int numberOfParticles)
    Add particles and other effects when a player lands on this part.
    default void
    addRunningEffects(P part, PartRayTraceResult hit, net.minecraft.world.entity.Entity entity)
    Add particles and other effects when a player runs over this part.
  • Method Details

    • addHitEffects

      default void addHitEffects(P part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine)
      Add particles and other effects when a player is mining this part.
      Parameters:
      hit - The PartRayTraceResult hit result.
      engine - The ParticleEngine to spawn particles.
    • addDestroyEffects

      default void addDestroyEffects(P part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine)
      Add particles and other effects when a player finishes breaking this part.
      Parameters:
      hit - The PartRayTraceResult hit result.
      engine - The ParticleEngine to spawn particles.
    • addLandingEffects

      default void addLandingEffects(P part, PartRayTraceResult hit, codechicken.lib.vec.Vector3 entity, int numberOfParticles)
      Add particles and other effects when a player lands on this part.
      Parameters:
      hit - The hit directly bellow the entities feet.
      entity - The position of the entity.
      numberOfParticles - The number of particles to spawn.
    • addRunningEffects

      default void addRunningEffects(P part, PartRayTraceResult hit, net.minecraft.world.entity.Entity entity)
      Add particles and other effects when a player runs over this part.

      This is called on both the client and the server.

      Parameters:
      hit - The hit directly bellow the players feet.
      entity - The entity running.