PhysicsConfig interface
Пакет: com.hypixel.hytale.server.core.modules.projectile.config
Файл: com/hypixel/hytale/server/core/modules/projectile/config/PhysicsConfig.java
extends: NetworkSerializable<com.hypixel.hytale.protocol.PhysicsConfig>
Методы (2)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
abstract |
void |
applyvoid apply(@Nonnull Holder<EntityStore> var1, @Nullable Ref<EntityStore> var2, @Nonnull Vector3d var3, @Nonnull ComponentAccessor<EntityStore> var4, boolean var5) |
default |
double |
getGravitydouble getGravity() |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.modules.projectile.config;
class="kw">import com.hypixel.hytale.codec.lookup.CodecMapCodec;
class="kw">import com.hypixel.hytale.component.ComponentAccessor;
class="kw">import com.hypixel.hytale.component.Holder;
class="kw">import com.hypixel.hytale.component.Ref;
class="kw">import com.hypixel.hytale.server.core.io.NetworkSerializable;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">import org.joml.Vector3d;
class="kw">public class="kw">interface PhysicsConfig class="kw">extends NetworkSerializable<com.hypixel.hytale.protocol.PhysicsConfig> {
@Nonnull
CodecMapCodec<PhysicsConfig> CODEC = new CodecMapCodec<>("Type");
void apply(
@Nonnull Holder<EntityStore> var1, @Nullable Ref<EntityStore> var2, @Nonnull Vector3d var3, @Nonnull ComponentAccessor<EntityStore> var4, boolean var5
);
class="kw">default double getGravity() {
class="kw">return 0.0;
}
}