Class SoundPredicate<T extends net.minecraft.world.entity.Entity>
java.lang.Object
net.frozenblock.lib.sound.api.predicate.SoundPredicate<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSoundPredicate.LoopPredicate<T extends net.minecraft.world.entity.Entity> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends net.minecraft.world.entity.Entity>
@NotNull SoundPredicate.LoopPredicate<T> static <T extends net.minecraft.world.entity.Entity>
SoundPredicate.LoopPredicate<T> getPredicate(@Nullable net.minecraft.resources.ResourceLocation id) static voidinit()static <T extends net.minecraft.world.entity.Entity>
@NotNull SoundPredicate.LoopPredicate<T> static <T extends net.minecraft.world.entity.Entity>
voidregister(net.minecraft.resources.ResourceLocation id, Supplier<SoundPredicate.LoopPredicate<T>> predicateSupplier) static <T extends net.minecraft.world.entity.Entity>
voidregisterUnsynced(net.minecraft.resources.ResourceLocation id, Supplier<SoundPredicate.LoopPredicate<T>> predicateSupplier)
-
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
-
SoundPredicate
-
-
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()
-