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>
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>
SoundPredicate.LoopPredicate<T> static <T extends net.minecraft.world.entity.Entity>
voidregister(net.minecraft.resources.ResourceLocation id, SoundPredicate.LoopPredicate<T> predicate) static <T extends net.minecraft.world.entity.Entity>
voidregisterUnsynced(net.minecraft.resources.ResourceLocation id, SoundPredicate.LoopPredicate<T> predicate)
-
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, SoundPredicate.LoopPredicate<T> predicate) -
registerUnsynced
public static <T extends net.minecraft.world.entity.Entity> void registerUnsynced(net.minecraft.resources.ResourceLocation id, SoundPredicate.LoopPredicate<T> predicate) -
getPredicate
public static <T extends net.minecraft.world.entity.Entity> SoundPredicate.LoopPredicate<T> getPredicate(@Nullable @Nullable net.minecraft.resources.ResourceLocation id) -
defaultPredicate
public static <T extends net.minecraft.world.entity.Entity> SoundPredicate.LoopPredicate<T> defaultPredicate() -
notSilentAndAlive
public static <T extends net.minecraft.world.entity.Entity> SoundPredicate.LoopPredicate<T> notSilentAndAlive() -
init
public static void init()
-