Class SoundPredicate<T extends net.minecraft.world.entity.Entity>

java.lang.Object
net.frozenblock.lib.sound.api.predicate.SoundPredicate<T>

public final class SoundPredicate<T extends net.minecraft.world.entity.Entity> extends Object
  • Field Details

    • DEFAULT_ID

      public static final net.minecraft.resources.ResourceLocation DEFAULT_ID
    • NOT_SILENT_AND_ALIVE_ID

      public static final net.minecraft.resources.ResourceLocation NOT_SILENT_AND_ALIVE_ID
  • Constructor Details

  • Method Details

    • register

      public static <T extends net.minecraft.world.entity.Entity> void register(net.minecraft.resources.ResourceLocation id, Supplier<SoundPredicate.LoopPredicate<T>> predicateSupplier)
    • registerUnsynced

      public static <T extends net.minecraft.world.entity.Entity> void registerUnsynced(net.minecraft.resources.ResourceLocation id, Supplier<SoundPredicate.LoopPredicate<T>> predicateSupplier)
    • getPredicate

      public static <T extends net.minecraft.world.entity.Entity> SoundPredicate.LoopPredicate<T> getPredicate(@Nullable @Nullable net.minecraft.resources.ResourceLocation id)
    • defaultPredicate

      @Contract(pure=true) @NotNull public static <T extends net.minecraft.world.entity.Entity> @NotNull SoundPredicate.LoopPredicate<T> defaultPredicate()
    • notSilentAndAlive

      @Contract(pure=true) @NotNull public static <T extends net.minecraft.world.entity.Entity> @NotNull SoundPredicate.LoopPredicate<T> notSilentAndAlive()
    • init

      public static void init()