Class SoundFileBuilder
-
- All Implemented Interfaces:
public final class SoundFileBuilder<P extends Object>
-
-
Constructor Summary
Constructors Constructor Description SoundFileBuilder(SoundBuilder<P> parent, String path)
SoundFileBuilder(SoundBuilder<P> parent, ResourceLocation path)
-
Method Summary
Modifier and Type Method Description final SoundDefinition.SoundType
getType()
final Unit
setType(SoundDefinition.SoundType type)
final Float
getVolume()
final Unit
setVolume(Float volume)
final Float
getPitch()
final Unit
setPitch(Float pitch)
final Integer
getWeight()
final Unit
setWeight(Integer weight)
final Integer
getAttenuationDistance()
final Unit
setAttenuationDistance(Integer attenuationDistance)
final Boolean
getStream()
final Unit
setStream(Boolean stream)
final Boolean
getPreload()
final Unit
setPreload(Boolean preload)
final SoundBuilder<P>
getParent()
final ResourceLocation
getPath()
final Unit
setPath(ResourceLocation path)
final SoundFileBuilder<P>
type(SoundDefinition.SoundType type)
final SoundFileBuilder<P>
volume(Float volume)
final SoundFileBuilder<P>
pitch(Float pitch)
final SoundFileBuilder<P>
weight(Integer weight)
final SoundFileBuilder<P>
attenuationDistance(Integer attenuationDistance)
final SoundFileBuilder<P>
stream(Boolean stream)
final SoundFileBuilder<P>
preload(Boolean preload)
final SoundDefinition.Sound
create()
final SoundBuilder<P>
build()
-
-
Constructor Detail
-
SoundFileBuilder
SoundFileBuilder(SoundBuilder<P> parent, String path)
-
SoundFileBuilder
SoundFileBuilder(SoundBuilder<P> parent, ResourceLocation path)
-
-
Method Detail
-
getType
final SoundDefinition.SoundType getType()
-
getAttenuationDistance
final Integer getAttenuationDistance()
-
setAttenuationDistance
final Unit setAttenuationDistance(Integer attenuationDistance)
-
getPreload
final Boolean getPreload()
-
setPreload
final Unit setPreload(Boolean preload)
-
getParent
final SoundBuilder<P> getParent()
-
getPath
final ResourceLocation getPath()
-
type
final SoundFileBuilder<P> type(SoundDefinition.SoundType type)
-
volume
final SoundFileBuilder<P> volume(Float volume)
-
pitch
final SoundFileBuilder<P> pitch(Float pitch)
-
weight
final SoundFileBuilder<P> weight(Integer weight)
-
attenuationDistance
final SoundFileBuilder<P> attenuationDistance(Integer attenuationDistance)
-
stream
final SoundFileBuilder<P> stream(Boolean stream)
-
preload
final SoundFileBuilder<P> preload(Boolean preload)
-
create
final SoundDefinition.Sound create()
-
build
final SoundBuilder<P> build()
-
-
-
-