Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getComponentType()
- getInsertSoundIndex()
- getRemoveSoundIndex()
- getStartDelaySeconds()
- getStopDelaySeconds()
- getObservedItemId()
- setObservedItemId(String)
- getPendingStartDeadline()
- setPendingStartDeadline(Instant)
- getPendingRemoveSoundDeadline()
- setPendingRemoveSoundDeadline(Instant)
- buildEmitter(ItemMusic, String)
- clone()
Class MusicPlayerBlock
java.lang.Object
com.hypixel.hytale.builtin.audio.components.MusicPlayerBlock
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
A block-entity component making a block play music from items set into its item container.
-
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildEmitter(ItemMusic music, String musicContainerId) Builds the emitter for an inserted item: this component's spatial config plus the item's track.clone()static ComponentType<ChunkStore, MusicPlayerBlock> intintfloatfloatvoidsetObservedItemId(String observedItemId) voidsetPendingRemoveSoundDeadline(Instant pendingRemoveSoundDeadline) voidsetPendingStartDeadline(Instant pendingStartDeadline) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
-
-
Constructor Details
-
MusicPlayerBlock
-
-
Method Details
-
getComponentType
-
getInsertSoundIndex
public int getInsertSoundIndex() -
getRemoveSoundIndex
public int getRemoveSoundIndex() -
getStartDelaySeconds
public float getStartDelaySeconds() -
getStopDelaySeconds
public float getStopDelaySeconds() -
getObservedItemId
-
setObservedItemId
-
getPendingStartDeadline
-
setPendingStartDeadline
-
getPendingRemoveSoundDeadline
-
setPendingRemoveSoundDeadline
-
buildEmitter
@Nonnull public MusicEmitterBlock buildEmitter(@Nonnull ItemMusic music, @Nonnull String musicContainerId) Builds the emitter for an inserted item: this component's spatial config plus the item's track. The caller must have checked the item names a MusicContainer. -
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-