Package eu.ha3.matmos.game.data.modules

Source Code of eu.ha3.matmos.game.data.modules.M__cb_light

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));
  }
}
TOP

Related Classes of eu.ha3.matmos.game.data.modules.M__cb_light

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.