Posts : 607 Join date : 2012-01-06 Age : 30 Location : The Dankins
Subject: Re: Rare ores and extraction? Sun Mar 11, 2012 11:09 am
"World.class.getClass(BlockFurnace)" ...
You might want to learn a little more about java before trying this kind of thing.
fr0stbyte124 Super Developrator
Posts : 1835 Join date : 2011-10-13
Subject: Re: Rare ores and extraction? Sun Mar 11, 2012 11:26 am
Static is not like final. Final is Java's version of constants; you define it once and never again. Static means there is only one instance of that particular thing instead of being bound to objects. You access things with Class.element instead of object.element.
Iv121 General
Posts : 2396 Join date : 2012-02-05 Location : -> HERE ! <-
Subject: Re: Rare ores and extraction? Sun Mar 11, 2012 1:21 pm
So you don't have to assign memory to it every time you use it ?
fr0stbyte124 Super Developrator
Posts : 1835 Join date : 2011-10-13
Subject: Re: Rare ores and extraction? Mon Mar 12, 2012 10:20 am
You mean for statics? No, you allocate memory once, because there will only ever be one instance of it. Look at some examples and it will make sense.
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
Subject: Re: Rare ores and extraction? Mon Mar 12, 2012 11:27 am
ahhhh yeah that's what it was
thanks frostbyte!
The Schmetterling DEV
Posts : 3123 Join date : 2011-08-31 Location : I'm a butterfly.
Subject: Re: Rare ores and extraction? Mon Mar 12, 2012 3:53 pm
Off topic!!
But seeing as your new topic is actually useful for the progress of the mod, I wont lock the topic.
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
Subject: Re: Rare ores and extraction? Mon Mar 12, 2012 5:02 pm