Interface ClientHelper

All Known Implementing Classes:
FabricClientHelper

public interface ClientHelper
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ClientHelper
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent>
     
    getRenderState(net.minecraft.client.renderer.entity.state.HumanoidRenderState state)
     
    getSessionUrl(com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService service)
     
    default @Nullable net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent>
    hurtSound(Gender gender)
     
    default boolean
    shouldOverlayHurtSound(net.minecraft.world.entity.Avatar avatar)
    Determines if the mod should play the gender hurt sound in addition to the vanilla hurt sound upon an Avatar entity taking damage.
  • Field Details

  • Method Details

    • femaleHurt

      net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> femaleHurt()
    • hurtSound

      default @Nullable net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> hurtSound(Gender gender)
    • getRenderState

      @Nullable GenderRenderState getRenderState(net.minecraft.client.renderer.entity.state.HumanoidRenderState state)
    • getSessionUrl

      String getSessionUrl(com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService service)
    • shouldOverlayHurtSound

      default boolean shouldOverlayHurtSound(net.minecraft.world.entity.Avatar avatar)

      Determines if the mod should play the gender hurt sound in addition to the vanilla hurt sound upon an Avatar entity taking damage.

      If this returns false, the sound is assumed to be handled elsewhere, as this exists to work around NeoForge's at entity sound event not being handled properly when mannequins take damage, which typically replaces the vanilla hurt sound.