59 lines
1.4 KiB
Java
59 lines
1.4 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.world.ticks;
|
|
|
|
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 BlackholeTickAccess {
|
|
private static final TickContainerAccess<Object> CONTAINER_BLACKHOLE = new TickContainerAccess<Object>(){
|
|
|
|
@Override
|
|
public void schedule(ScheduledTick<Object> tick) {
|
|
}
|
|
|
|
@Override
|
|
public boolean hasScheduledTick(BlockPos pos, Object type) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public int count() {
|
|
return 0;
|
|
}
|
|
};
|
|
private static final LevelTickAccess<Object> LEVEL_BLACKHOLE = new LevelTickAccess<Object>(){
|
|
|
|
@Override
|
|
public void schedule(ScheduledTick<Object> tick) {
|
|
}
|
|
|
|
@Override
|
|
public boolean hasScheduledTick(BlockPos pos, Object type) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public boolean willTickThisTick(BlockPos pos, Object type) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public int count() {
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
public static <T> TickContainerAccess<T> emptyContainer() {
|
|
return CONTAINER_BLACKHOLE;
|
|
}
|
|
|
|
public static <T> LevelTickAccess<T> emptyLevelList() {
|
|
return LEVEL_BLACKHOLE;
|
|
}
|
|
}
|
|
|