/* Class285_Sub1 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.datatransfer.Clipboard;

public class Class285_Sub1 extends Class285
{
    Class230 aClass230_9783;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9784;
    Class403 aClass403_9785 = new Class403();
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9786;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9787;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9788;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9789;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9790;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9791;
    Class230 aClass230_9792;
    Class229 aClass229_9793;
    Class230 aClass230_9794;
    public static Clipboard aClipboard9795;
    
    public void method3873(boolean bool) {
	((Class285_Sub1) this).aClass229_9793.method3277
	    (bool ? ((Class285_Sub1) this).aClass230_9794
	     : ((Class285_Sub1) this).aClass230_9792);
	((Class285_Sub1) this).aClass229_9793.method3268();
	method8828(bool, false, (byte) -1);
	aClass151_Sub2_3282.method8362();
    }
    
    boolean method8827(int i) throws Exception_Sub6 {
	((Class285_Sub1) this).aClass229_9793
	    = aClass151_Sub2_3282.method8245("Particle");
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9786
	    = ((Class285_Sub1) this).aClass229_9793.method3274("WVPMatrix",
							       1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9784
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DiffuseSampler", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9791
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("TexCoordMatrix", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9787
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogPlane", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9789
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogColour", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9790
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogAmount", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9788
	    = ((Class285_Sub1) this).aClass229_9793.method3274("DiffuseColour",
							       1385157655);
	((Class285_Sub1) this).aClass230_9792
	    = ((Class285_Sub1) this).aClass229_9793.method3288("NoFog",
							       -1898957846);
	((Class285_Sub1) this).aClass230_9783
	    = ((Class285_Sub1) this).aClass229_9793.method3288("ParticleFog",
							       -472518058);
	((Class285_Sub1) this).aClass230_9794
	    = ((Class285_Sub1) this).aClass229_9793.method3288("BillboardFog",
							       1305408150);
	if (!((Class285_Sub1) this).aClass230_9792.method3365())
	    return false;
	if (!((Class285_Sub1) this).aClass230_9783.method3365())
	    return false;
	if (!((Class285_Sub1) this).aClass230_9794.method3365())
	    return false;
	return true;
    }
    
    public Class285_Sub1(Class151_Sub2 class151_sub2) throws Exception_Sub6 {
	super(class151_sub2);
	method8827(-40654783);
    }
    
    public void method3867(int i, boolean bool) {
	((Class285_Sub1) this).aClass229_9793.method3277
	    (bool ? ((Class285_Sub1) this).aClass230_9783
	     : ((Class285_Sub1) this).aClass230_9792);
	((Class285_Sub1) this).aClass229_9793.method3268();
	method8828(bool, true, (byte) -1);
	aClass151_Sub2_3282.method8351(Class342.aClass342_3644, 0, i * 4, 0,
				       2 * i);
    }
    
    public void method3868(boolean bool) {
	((Class285_Sub1) this).aClass229_9793.method3277
	    (bool ? ((Class285_Sub1) this).aClass230_9794
	     : ((Class285_Sub1) this).aClass230_9792);
	((Class285_Sub1) this).aClass229_9793.method3268();
	method8828(bool, false, (byte) -1);
	aClass151_Sub2_3282.method8362();
    }
    
    void method8828(boolean bool, boolean bool_0_, byte i) {
	((Class285_Sub1) this).aClass229_9793.method3311
	    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9784, 0,
	     anInterface31_3277, (byte) 1);
	((Class285_Sub1) this).aClass229_9793.method3298
	    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9786,
	     ((Class285_Sub1) this).aClass403_9785, -551167935);
	((Class285_Sub1) this).aClass229_9793.method3287
	    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9791, aClass403_3279,
	     -733118852);
	((Class285_Sub1) this).aClass229_9793.method3286
	    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9788, anInt3280,
	     -1618180197);
	if (bool) {
	    if (bool_0_)
		((Class285_Sub1) this).aClass229_9793.method3283
		    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9787,
		     aClass388_3283.aFloat4517, aClass388_3283.aFloat4516,
		     aClass388_3283.aFloat4515, aClass388_3283.aFloat4518,
		     1247764678);
	    else
		((Class285_Sub1) this).aClass229_9793.method3307
		    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9790,
		     Math.min(Math.max(aFloat3278, 0.0F), 1.0F), 761556940);
	    ((Class285_Sub1) this).aClass229_9793.method3293
		(((Class285_Sub1) this).aClass487_Sub31_Sub1_9789,
		 aClass396_3281.aFloat4545, aClass396_3281.aFloat4542,
		 aClass396_3281.aFloat4547, 184140231);
	}
    }
    
    public void method3869(Class403 class403) {
	((Class285_Sub1) this).aClass403_9785.method4864(class403);
	((Class285_Sub1) this).aClass403_9785
	    .method4863(aClass151_Sub2_3282.aClass403_8960);
    }
    
    public void method3865(int i, boolean bool) {
	((Class285_Sub1) this).aClass229_9793.method3277
	    (bool ? ((Class285_Sub1) this).aClass230_9783
	     : ((Class285_Sub1) this).aClass230_9792);
	((Class285_Sub1) this).aClass229_9793.method3268();
	method8828(bool, true, (byte) -1);
	aClass151_Sub2_3282.method8351(Class342.aClass342_3644, 0, i * 4, 0,
				       2 * i);
    }
    
    public void method3870(int i, boolean bool) {
	((Class285_Sub1) this).aClass229_9793.method3277
	    (bool ? ((Class285_Sub1) this).aClass230_9783
	     : ((Class285_Sub1) this).aClass230_9792);
	((Class285_Sub1) this).aClass229_9793.method3268();
	method8828(bool, true, (byte) -1);
	aClass151_Sub2_3282.method8351(Class342.aClass342_3644, 0, i * 4, 0,
				       2 * i);
    }
    
    public void method3871(int i, boolean bool) {
	((Class285_Sub1) this).aClass229_9793.method3277
	    (bool ? ((Class285_Sub1) this).aClass230_9783
	     : ((Class285_Sub1) this).aClass230_9792);
	((Class285_Sub1) this).aClass229_9793.method3268();
	method8828(bool, true, (byte) -1);
	aClass151_Sub2_3282.method8351(Class342.aClass342_3644, 0, i * 4, 0,
				       2 * i);
    }
    
    boolean method8829() throws Exception_Sub6 {
	((Class285_Sub1) this).aClass229_9793
	    = aClass151_Sub2_3282.method8245("Particle");
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9786
	    = ((Class285_Sub1) this).aClass229_9793.method3274("WVPMatrix",
							       1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9784
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DiffuseSampler", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9791
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("TexCoordMatrix", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9787
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogPlane", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9789
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogColour", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9790
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogAmount", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9788
	    = ((Class285_Sub1) this).aClass229_9793.method3274("DiffuseColour",
							       1385157655);
	((Class285_Sub1) this).aClass230_9792
	    = ((Class285_Sub1) this).aClass229_9793.method3288("NoFog",
							       -615878787);
	((Class285_Sub1) this).aClass230_9783
	    = ((Class285_Sub1) this).aClass229_9793.method3288("ParticleFog",
							       -1733925859);
	((Class285_Sub1) this).aClass230_9794
	    = ((Class285_Sub1) this).aClass229_9793.method3288("BillboardFog",
							       1017595140);
	if (!((Class285_Sub1) this).aClass230_9792.method3365())
	    return false;
	if (!((Class285_Sub1) this).aClass230_9783.method3365())
	    return false;
	if (!((Class285_Sub1) this).aClass230_9794.method3365())
	    return false;
	return true;
    }
    
    public void method3872(boolean bool) {
	((Class285_Sub1) this).aClass229_9793.method3277
	    (bool ? ((Class285_Sub1) this).aClass230_9794
	     : ((Class285_Sub1) this).aClass230_9792);
	((Class285_Sub1) this).aClass229_9793.method3268();
	method8828(bool, false, (byte) -1);
	aClass151_Sub2_3282.method8362();
    }
    
    boolean method8830() throws Exception_Sub6 {
	((Class285_Sub1) this).aClass229_9793
	    = aClass151_Sub2_3282.method8245("Particle");
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9786
	    = ((Class285_Sub1) this).aClass229_9793.method3274("WVPMatrix",
							       1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9784
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DiffuseSampler", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9791
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("TexCoordMatrix", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9787
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogPlane", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9789
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogColour", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9790
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogAmount", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9788
	    = ((Class285_Sub1) this).aClass229_9793.method3274("DiffuseColour",
							       1385157655);
	((Class285_Sub1) this).aClass230_9792
	    = ((Class285_Sub1) this).aClass229_9793.method3288("NoFog",
							       -876422657);
	((Class285_Sub1) this).aClass230_9783
	    = ((Class285_Sub1) this).aClass229_9793.method3288("ParticleFog",
							       696346697);
	((Class285_Sub1) this).aClass230_9794
	    = ((Class285_Sub1) this).aClass229_9793.method3288("BillboardFog",
							       -1070723655);
	if (!((Class285_Sub1) this).aClass230_9792.method3365())
	    return false;
	if (!((Class285_Sub1) this).aClass230_9783.method3365())
	    return false;
	if (!((Class285_Sub1) this).aClass230_9794.method3365())
	    return false;
	return true;
    }
    
    public void method3866(Class403 class403) {
	((Class285_Sub1) this).aClass403_9785.method4864(class403);
	((Class285_Sub1) this).aClass403_9785
	    .method4863(aClass151_Sub2_3282.aClass403_8960);
    }
    
    boolean method8831() throws Exception_Sub6 {
	((Class285_Sub1) this).aClass229_9793
	    = aClass151_Sub2_3282.method8245("Particle");
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9786
	    = ((Class285_Sub1) this).aClass229_9793.method3274("WVPMatrix",
							       1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9784
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DiffuseSampler", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9791
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("TexCoordMatrix", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9787
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogPlane", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9789
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogColour", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9790
	    = ((Class285_Sub1) this).aClass229_9793
		  .method3274("DistanceFogAmount", 1385157655);
	((Class285_Sub1) this).aClass487_Sub31_Sub1_9788
	    = ((Class285_Sub1) this).aClass229_9793.method3274("DiffuseColour",
							       1385157655);
	((Class285_Sub1) this).aClass230_9792
	    = ((Class285_Sub1) this).aClass229_9793.method3288("NoFog",
							       833706690);
	((Class285_Sub1) this).aClass230_9783
	    = ((Class285_Sub1) this).aClass229_9793.method3288("ParticleFog",
							       126428846);
	((Class285_Sub1) this).aClass230_9794
	    = ((Class285_Sub1) this).aClass229_9793.method3288("BillboardFog",
							       -1273830255);
	if (!((Class285_Sub1) this).aClass230_9792.method3365())
	    return false;
	if (!((Class285_Sub1) this).aClass230_9783.method3365())
	    return false;
	if (!((Class285_Sub1) this).aClass230_9794.method3365())
	    return false;
	return true;
    }
    
    void method8832(boolean bool, boolean bool_1_) {
	((Class285_Sub1) this).aClass229_9793.method3311
	    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9784, 0,
	     anInterface31_3277, (byte) 1);
	((Class285_Sub1) this).aClass229_9793.method3298
	    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9786,
	     ((Class285_Sub1) this).aClass403_9785, 1334392509);
	((Class285_Sub1) this).aClass229_9793.method3287
	    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9791, aClass403_3279,
	     1800677864);
	((Class285_Sub1) this).aClass229_9793.method3286
	    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9788, anInt3280,
	     419450035);
	if (bool) {
	    if (bool_1_)
		((Class285_Sub1) this).aClass229_9793.method3283
		    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9787,
		     aClass388_3283.aFloat4517, aClass388_3283.aFloat4516,
		     aClass388_3283.aFloat4515, aClass388_3283.aFloat4518,
		     1613656290);
	    else
		((Class285_Sub1) this).aClass229_9793.method3307
		    (((Class285_Sub1) this).aClass487_Sub31_Sub1_9790,
		     Math.min(Math.max(aFloat3278, 0.0F), 1.0F), -1571710186);
	    ((Class285_Sub1) this).aClass229_9793.method3293
		(((Class285_Sub1) this).aClass487_Sub31_Sub1_9789,
		 aClass396_3281.aFloat4545, aClass396_3281.aFloat4542,
		 aClass396_3281.aFloat4547, 293482319);
	}
    }
    
    static final void method8833(Class612 class612, byte i) {
	if (Class258_Sub1.aClass521_9832.method6390(82, (short) 832))
	    ((Class612) class612).anIntArray8021
		[((((Class612) class612).anInt8022 += 201091009) * -40654783
		  - 1)]
		= 1;
	else
	    ((Class612) class612).anIntArray8021
		[((((Class612) class612).anInt8022 += 201091009) * -40654783
		  - 1)]
		= 0;
    }
    
    static final void method8834(Class612 class612, int i) {
	int i_2_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class487_Sub35_Sub12 class487_sub35_sub12
	    = Class3.method493((short) -941);
	if (null != class487_sub35_sub12) {
	    boolean bool
		= class487_sub35_sub12.method10388(i_2_ >> 28 & 0x3,
						   i_2_ >> 14 & 0x3fff,
						   i_2_ & 0x3fff,
						   Class623.anIntArray8087,
						   -121748869);
	    if (bool)
		Class669.method7994(Class623.anIntArray8087[1],
				    Class623.anIntArray8087[2], (byte) 12);
	}
    }
    
    static Class487_Sub17 method8835(byte i) {
	Class487_Sub17 class487_sub17 = new Class487_Sub17(518);
	Class24.anIntArray324 = new int[4];
	Class24.anIntArray324[0] = (int) (Math.random() * 9.9999999E7);
	Class24.anIntArray324[1] = (int) (Math.random() * 9.9999999E7);
	Class24.anIntArray324[2] = (int) (Math.random() * 9.9999999E7);
	Class24.anIntArray324[3] = (int) (Math.random() * 9.9999999E7);
	class487_sub17.method9201(10, (byte) 64);
	class487_sub17.method9286(Class24.anIntArray324[0], (byte) -21);
	class487_sub17.method9286(Class24.anIntArray324[1], (byte) -9);
	class487_sub17.method9286(Class24.anIntArray324[2], (byte) -122);
	class487_sub17.method9286(Class24.anIntArray324[3], (byte) -118);
	return class487_sub17;
    }
    
    static void method8836(int i, int i_3_, int i_4_, int i_5_, int i_6_) {
	Class487_Sub35_Sub7 class487_sub35_sub7
	    = Exception_Sub3.method10133(17, (long) i_3_ << 32 | (long) i);
	class487_sub35_sub7.method10304(-1771339437);
	((Class487_Sub35_Sub7) class487_sub35_sub7).anInt11418
	    = -1631067631 * i_4_;
	((Class487_Sub35_Sub7) class487_sub35_sub7).anInt11392
	    = i_5_ * 787706703;
    }
}
