Package net.frozenblock.lib.sound.api
Class MovingLoopingSoundEntityManager.SoundLoopData
java.lang.Object
net.frozenblock.lib.sound.api.MovingLoopingSoundEntityManager.SoundLoopData
- Enclosing class:
MovingLoopingSoundEntityManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringstatic final com.mojang.serialization.Codec<MovingLoopingSoundEntityManager.SoundLoopData> final floatfinal net.minecraft.resources.ResourceLocationfinal net.minecraft.resources.ResourceLocationfinal booleanfinal float -
Constructor Summary
ConstructorsConstructorDescriptionSoundLoopData(net.minecraft.resources.ResourceLocation soundEventID, String ordinal, float vol, float pitch, net.minecraft.resources.ResourceLocation restrictionID, boolean stopOnDeath) SoundLoopData(net.minecraft.resources.ResourceLocation soundEventID, net.minecraft.sounds.SoundSource category, float vol, float pitch, net.minecraft.resources.ResourceLocation restrictionID, boolean stopOnDeath) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetPitch()net.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationbooleanfloat
-
Field Details
-
soundEventID
public final net.minecraft.resources.ResourceLocation soundEventID -
categoryOrdinal
-
volume
public final float volume -
pitch
public final float pitch -
restrictionID
public final net.minecraft.resources.ResourceLocation restrictionID -
stopOnDeath
public final boolean stopOnDeath -
CODEC
public static final com.mojang.serialization.Codec<MovingLoopingSoundEntityManager.SoundLoopData> CODEC
-
-
Constructor Details
-
SoundLoopData
public SoundLoopData(net.minecraft.resources.ResourceLocation soundEventID, String ordinal, float vol, float pitch, net.minecraft.resources.ResourceLocation restrictionID, boolean stopOnDeath) -
SoundLoopData
public SoundLoopData(net.minecraft.resources.ResourceLocation soundEventID, net.minecraft.sounds.SoundSource category, float vol, float pitch, net.minecraft.resources.ResourceLocation restrictionID, boolean stopOnDeath)
-
-
Method Details
-
getSoundEventID
public net.minecraft.resources.ResourceLocation getSoundEventID() -
getOrdinal
-
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getRestrictionID
public net.minecraft.resources.ResourceLocation getRestrictionID() -
getStopOnDeath
public boolean getStopOnDeath()
-