ISpawnableWithModel interface

Пакет: com.hypixel.hytale.server.spawning

Файл: com/hypixel/hytale/server/spawning/ISpawnableWithModel.java

extends: ISpawnable

Методы (8)

МодификаторыВозвратСигнатура
abstract throw new IllegalStateExceptionthrow new IllegalStateException("Call to createModifierScope not valid for ISpawnableWithModel")
default boolean breathesInAirboolean breathesInAir(@Nonnull ExecutionContext var1, @Nullable Scope var2)
default boolean breathesInWaterboolean breathesInWater(@Nonnull ExecutionContext var1, @Nullable Scope var2)
abstract Scope createExecutionScopeScope createExecutionScope()
abstract String getMemoriesCategoryString getMemoriesCategory(ExecutionContext var1, @Nullable Scope var2)
abstract String getMemoriesNameOverrideString getMemoriesNameOverride(ExecutionContext var1, @Nullable Scope var2)
abstract boolean isMemoryboolean isMemory(ExecutionContext var1, @Nullable Scope var2)
abstract void markNeedsReloadvoid markNeedsReload()

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.server.spawning;

class="kw">import com.hypixel.hytale.server.npc.util.expression.ExecutionContext;
class="kw">import com.hypixel.hytale.server.npc.util.expression.Scope;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;

class="kw">public class="kw">interface ISpawnableWithModel class="kw">extends ISpawnable {
   @Nullable
   String getSpawnModelName(ExecutionContext var1, Scope var2);

   @Nullable
   class="kw">default Scope createModifierScope(ExecutionContext var1) {
      throw new IllegalStateException("Call to createModifierScope not valid for ISpawnableWithModel");
   }

   Scope createExecutionScope();

   void markNeedsReload();

   boolean isMemory(ExecutionContext var1, @Nullable Scope var2);

   String getMemoriesCategory(ExecutionContext var1, @Nullable Scope var2);

   String getMemoriesNameOverride(ExecutionContext var1, @Nullable Scope var2);

   @Nonnull
   String getNameTranslationKey(ExecutionContext var1, @Nullable Scope var2);

   class="kw">default boolean breathesInAir(@Nonnull ExecutionContext var1, @Nullable Scope var2) {
      class="kw">return true;
   }

   class="kw">default boolean breathesInWater(@Nonnull ExecutionContext var1, @Nullable Scope var2) {
      class="kw">return false;
   }
}