<commit_before>package galaxyspace.systems.BarnardsSystem.planets.barnarda_c.dimension.sky;

import asmodeuscore.core.astronomy.sky.SkyProviderBase;
import galaxyspace.systems.BarnardsSystem.BarnardsSystemBodies;
import micdoodle8.mods.galacticraft.api.vector.Vector3;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.util.ResourceLocation;

public class SkyProviderBarnarda_C extends SkyProviderBase{

	@Override
	protected void rendererSky(Tessellator tessellator, BufferBuilder buffer, float f10, float ticks) {
		
	}

	@Override
	protected int modeLight() {
		return 0;
	}

	@Override
	protected boolean enableBaseImages() {
		return true;<commit_msg>Added moons on Bar.C sky.<commit_after>package galaxyspace.systems.BarnardsSystem.planets.barnarda_c.dimension.sky;

import org.lwjgl.opengl.GL11;

import asmodeuscore.core.astronomy.sky.SkyProviderBase;
import galaxyspace.GalaxySpace;
import galaxyspace.systems.BarnardsSystem.BarnardsSystemBodies;
import micdoodle8.mods.galacticraft.api.prefab.world.gen.WorldProviderSpace;
import micdoodle8.mods.galacticraft.api.vector.Vector3;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.client.FMLClientHandler;

public class SkyProviderBarnarda_C extends SkyProviderBase{

	private static final ResourceLocation barnarda_c1_Texture = new ResourceLocation(GalaxySpace.ASSET_PREFIX, "textures/gui/celestialbodies/barnards/moons/barnarda_c1.png");
	private static final ResourceLocation barnarda_c2_Texture = new ResourceLocation(GalaxySpace.ASSET_PREFIX, "textures/gui/celestialbodies/barnards/moons/barnarda_c2.png");
	
	@Override
	protected void rendererSky(Tessellator tessellator, BufferBuilder buffer, float f10, float ticks) {
		GL11.glPopMatrix();
        GL11.glPushMatrix();
        
       
        
        long daylength = ((WorldProviderSpace) this.mc.world.provider).getDayLength();
        
        f10 = 5.5F;

        GL11.glRotatef(this.getCelestialAngle(daylength), 0.0F, 0.0F, 1.0F);	        
        GL11.glRotatef(0.0F, 0.0F, 0.0F, 1.0F);	
        GL11.glRotatef(0.0F, 1.0F, 0.0F, 0.0F);	
        
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        FMLClientHandler.instance().getClient().renderEngine.bindTexture(this.barnarda_c1_Texture);
        buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
        buffer.pos(-f10, -100.0D, f10).tex(0, 1.0).endVertex();
        buffer.pos(f10, -100.0D, f10).tex(1.0, 1.0).endVertex();
        buffer.pos(f10, -100.0D, -f10).tex(1.0, 0).endVertex();
        buffer.pos(-f10, -100.0D, -f10).tex(0, 0).endVertex();
        tessellator.draw();
        
        GL11.glPopMatrix();
        GL11.glPushMatrix();
        
        GL11.glEnable(GL11.GL_BLEND);
        //OpenGlHelper.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
        
        f10 = 2.5F;
        
        GL11.glRotatef(this.getCelestialAngle((long) (daylength * 1.2)), 0.0F, 0.0F, 1.0F);	        
        GL11.glRotatef(80.0F, 0.0F, 0.0F, 1.0F);	
        GL11.glRotatef(40.0F, 1.0F, 0.0F, 0.0F);	
        
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        FMLClientHandler.instance().getClient().renderEngine.bindTexture(this.barnarda_c2_Texture);
        buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
        buffer.pos(-f10, -100.0D, f10).tex(0, 1.0).endVertex();
        buffer.pos(f10, -100.0D, f10).tex(1.0, 1.0).endVertex();
        buffer.pos(f10, -100.0D, -f10).tex(1.0, 0).endVertex();
        buffer.pos(-f10, -100.0D, -f10).tex(0, 0).endVertex();
        tessellator.draw();
        
        GL11.glDisable(GL11.GL_BLEND);
	}

	@Override
	protected int modeLight() {
		return 0;
	}

	@Override
	protected boolean enableBaseImages() {
		return true;
{'fraction_non_alphanumeric': 0.1280441877981421, 'fraction_numerical': 0.056490082852121516, 'mean_word_length': 3.611111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '265477', 'n_tokens_mistral': 1613, 'n_tokens_neox': 1470, 'n_words': 205}