ActionResetSearchRays class
Пакет: com.hypixel.hytale.server.npc.corecomponents.world
Файл: com/hypixel/hytale/server/npc/corecomponents/world/ActionResetSearchRays.java
extends: ActionBase
Поля (2)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
int[] |
searchRayIds |
|
WorldSupport |
var7 |
Методы (3)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
|
|
for for(int var11 : this.searchRayIds) |
|
|
if if(this.searchRayIds.length == 0) |
abstract |
|
super super(var1) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.npc.corecomponents.world;
class="kw">import com.hypixel.hytale.component.Ref;
class="kw">import com.hypixel.hytale.component.Store;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import com.hypixel.hytale.server.npc.asset.builder.BuilderSupport;
class="kw">import com.hypixel.hytale.server.npc.corecomponents.ActionBase;
class="kw">import com.hypixel.hytale.server.npc.corecomponents.world.builders.BuilderActionResetSearchRays;
class="kw">import com.hypixel.hytale.server.npc.instructions.ExecutionSupport;
class="kw">import com.hypixel.hytale.server.npc.role.support.WorldSupport;
class="kw">import com.hypixel.hytale.server.npc.sensorinfo.InfoProvider;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">public class ActionResetSearchRays class="kw">extends ActionBase {
class="kw">protected class="kw">final int[] searchRayIds;
class="kw">public ActionResetSearchRays(@Nonnull BuilderActionResetSearchRays var1, @Nonnull BuilderSupport var2) {
super(var1);
this.searchRayIds = var1.getIds(var2);
}
@Override
class="kw">public boolean execute(
@Nonnull Ref<EntityStore> var1, @Nonnull ExecutionSupport var2, @Nullable InfoProvider var3, double var4, @Nonnull Store<EntityStore> var6
) {
super.execute(var1, var2, var3, var4, var6);
WorldSupport var7 = var2.getWorldSupport();
if (this.searchRayIds.length == 0) {
var7.resetAllCachedSearchRayPositions();
class="kw">return true;
}
for (int var11 : this.searchRayIds) {
var7.resetCachedSearchRayPosition(var11);
}
class="kw">return true;
}
}