/* * Decompiled with CFR 0.152. */ package net.minecraft.world.ticks; import java.util.function.Function; import net.minecraft.core.BlockPos; import net.minecraft.world.ticks.LevelTickAccess; import net.minecraft.world.ticks.ScheduledTick; import net.minecraft.world.ticks.TickContainerAccess; public class WorldGenTickAccess implements LevelTickAccess { private final Function> containerGetter; public WorldGenTickAccess(Function> containerGetter) { this.containerGetter = containerGetter; } @Override public boolean hasScheduledTick(BlockPos pos, T type) { return this.containerGetter.apply(pos).hasScheduledTick(pos, type); } @Override public void schedule(ScheduledTick tick) { this.containerGetter.apply(tick.pos()).schedule(tick); } @Override public boolean willTickThisTick(BlockPos pos, T type) { return false; } @Override public int count() { return 0; } }