SpawnNPCInteractionFailureTrackerSystems class
Пакет: com.hypixel.hytale.server.npc.systems
Файл: com/hypixel/hytale/server/npc/systems/SpawnNPCInteractionFailureTrackerSystems.java
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
|
private final ResourceType<EntityStore, SpawnNPCInteractionFailureTracker> |
trackerResourceType |
Методы (4)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
|
public |
BreakBlockClearSystempublic BreakBlockClearSystem(@Nonnull ResourceType<EntityStore, SpawnNPCInteractionFailureTracker> var1) |
|
public Query<EntityStore> |
getQuerypublic Query<EntityStore> getQuery() |
|
public void |
handlepublic void handle(int var1,
@Nonnull ArchetypeChunk<EntityStore> var2,
@Nonnull Store<EntityStore> var3,
@Nonnull CommandBuffer<EntityStore> var4,
@Nonnull BreakBlockEvent var5) |
abstract |
|
super super(BreakBlockEvent.class) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.npc.systems;
class="kw">import com.hypixel.hytale.component.Archetype;
class="kw">import com.hypixel.hytale.component.ArchetypeChunk;
class="kw">import com.hypixel.hytale.component.CommandBuffer;
class="kw">import com.hypixel.hytale.component.ResourceType;
class="kw">import com.hypixel.hytale.component.Store;
class="kw">import com.hypixel.hytale.component.query.Query;
class="kw">import com.hypixel.hytale.component.system.EntityEventSystem;
class="kw">import com.hypixel.hytale.server.core.event.events.ecs.BreakBlockEvent;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import com.hypixel.hytale.server.npc.interactions.SpawnNPCInteractionFailureTracker;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">public class="kw">final class SpawnNPCInteractionFailureTrackerSystems {
class="kw">private SpawnNPCInteractionFailureTrackerSystems() {
}
class="kw">public class="kw">static class BreakBlockClearSystem class="kw">extends EntityEventSystem<EntityStore, BreakBlockEvent> {
@Nonnull
class="kw">private class="kw">final ResourceType<EntityStore, SpawnNPCInteractionFailureTracker> trackerResourceType;
class="kw">public BreakBlockClearSystem(@Nonnull ResourceType<EntityStore, SpawnNPCInteractionFailureTracker> var1) {
super(BreakBlockEvent.class);
this.trackerResourceType = var1;
}
class="kw">public void handle(
int var1,
@Nonnull ArchetypeChunk<EntityStore> var2,
@Nonnull Store<EntityStore> var3,
@Nonnull CommandBuffer<EntityStore> var4,
@Nonnull BreakBlockEvent var5
) {
var3.getResource(this.trackerResourceType).clearFailureForBlock(var5.getTargetBlock());
}
@Nullable
@Override
class="kw">public Query<EntityStore> getQuery() {
class="kw">return Archetype.empty();
}
}
}