Interface IconHitEffectsPart

All Superinterfaces:
MultiPart
All Known Implementing Classes:
ButtonPart, ButtonPart.AcaciaButtonPart, ButtonPart.BirchButtonPart, ButtonPart.CrimsonButtonPart, ButtonPart.DarkOakButtonPart, ButtonPart.JungleButtonPart, ButtonPart.OakButtonPart, ButtonPart.PolishedBlackstoneButtonPart, ButtonPart.SpruceButtonPart, ButtonPart.StoneButtonPart, ButtonPart.WarpedButtonPart, LeverPart, McSidedStatePart, McStatePart, RedstoneTorchPart, SoulTorchPart, TorchPart

public interface IconHitEffectsPart extends MultiPart
Interface for parts which want easy custom hit/breaking particles.

Created by covers1624 on 6/6/22.

  • Method Details

    • getBounds

      codechicken.lib.vec.Cuboid6 getBounds()
    • getBreakingIcon

      net.minecraft.client.renderer.texture.TextureAtlasSprite getBreakingIcon(PartRayTraceResult hit)
    • getBrokenIcon

      net.minecraft.client.renderer.texture.TextureAtlasSprite getBrokenIcon(int side)
    • addHitEffects

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

      default void addDestroyEffects(PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine)
      Description copied from interface: MultiPart
      Add particles and other effects when a player finishes breaking this part.
      Specified by:
      addDestroyEffects in interface MultiPart
      Parameters:
      hit - The PartRayTraceResult hit result.
      engine - The ParticleEngine to spawn particles.
    • addHitEffects

      static void addHitEffects(IconHitEffectsPart part, PartRayTraceResult hit, net.minecraft.client.particle.ParticleEngine engine)
    • addDestroyEffects

      static void addDestroyEffects(IconHitEffectsPart part, net.minecraft.client.particle.ParticleEngine engine)
    • addDestroyEffects

      static void addDestroyEffects(IconHitEffectsPart part, net.minecraft.client.particle.ParticleEngine engine, boolean scaleDensity)