package eu.ha3.matmos.game.data.modules;
import net.minecraft.client.Minecraft;
import net.minecraft.world.EnumSkyBlock;
import net.minecraft.world.World;
import eu.ha3.matmos.engine.core.interfaces.Data;
import eu.ha3.matmos.game.data.abstractions.module.Module;
import eu.ha3.matmos.game.data.abstractions.module.ModuleProcessor;
import eu.ha3.matmos.game.system.MAtmosUtility;
/*
--filenotes-placeholder
*/
public class M__cb_light extends ModuleProcessor implements Module
{
public M__cb_light(Data data)
{
super(data, "cb_light");
}
@Override
protected void doProcess()
{
World w = Minecraft.getMinecraft().theWorld;
int x = MAtmosUtility.getPlayerX();
int y = MAtmosUtility.getPlayerY();
int z = MAtmosUtility.getPlayerZ();
setValue("sky", w.getSavedLightValue(EnumSkyBlock.Sky, x, y, z));
setValue("lamp", w.getSavedLightValue(EnumSkyBlock.Block, x, y, z));
setValue("final", w.getBlockLightValue(x, y, z));
setValue("see_sky", w.canBlockSeeTheSky(x, y, z));
}
}