EntityVoiceSpeaker class
Пакет: com.hypixel.hytale.server.core.modules.voice
Файл: com/hypixel/hytale/server/core/modules/voice/EntityVoiceSpeaker.java
extends: VoiceSpeaker
Поля (2)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
Ref<EntityStore> |
entityRef |
|
VoiceModule.PositionSnapshot |
var1 |
Методы (1)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
abstract |
|
super super(var1, var2) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.modules.voice;
class="kw">import com.hypixel.hytale.component.Ref;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import java.util.UUID;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">final class EntityVoiceSpeaker class="kw">extends VoiceSpeaker {
class="kw">private class="kw">final Ref<EntityStore> entityRef;
EntityVoiceSpeaker(@Nonnull VoiceModule var1, @Nonnull UUID var2, @Nonnull Ref<EntityStore> var3) {
super(var1, var2);
this.entityRef = var3;
}
@Nullable
@Override
Ref<EntityStore> entityRef() {
class="kw">return this.entityRef;
}
@Nullable
@Override
VoiceRouter.SpeakerDescriptor buildDescriptor() {
VoiceModule.PositionSnapshot var1 = this.module.getCachedPosition(this.speakerId);
class="kw">return var1 == null ? null : new VoiceRouter.SpeakerDescriptor(this.speakerId, var1.position(), var1.isUnderwater(), var1.worldId(), var1.networkId());
}
}