[squeak-dev] [ANN] Minecraft Bindings - Minecraft.zip (0/1)

Bert Freudenberg bert at freudenbergs.de
Tue Mar 5 22:59:59 UTC 2013


Actually, having both the constants and the getters seems kind-of redundant, no? I'd just use the constants and see how far we get. That dictionary could be used e.g. for printing block names ...

Also, why did you split up the initialization? Filling in the pool from a literal array would seem much more natural to me ...

And why are these so many? Are you sure that's for the Pocket edition (which the Pi edition is based on)? I see a lot fewer I think:
http://www.minecraftwiki.net/wiki/Data_values_(Pocket_Edition)

- Bert -

On 2013-03-05, at 23:22, Louis LaBrunda <Lou at Keystone-Software.com> wrote:

> Thanks Bob,
> 
> That did the trick.  Bert had suggested the getters be added on the
> instance side of Minecraft, so that's what I did (at least on my image, if
> Bert likes it, we will go with it).  As you suggested, I added the code to
> generate the getters on the class side of MinecraftConstants.
> 
> Is there a way to add MinecraftConstants to the Minecraft poolDictionaries
> list if it isn't there already?
> 
> Lou
> 
>> compileGetters
>> "
>> MinecraftConstants compileGetters
>> "
>> 
>>    MinecraftConstants bindingsDo: [:b |
>>        MinecraftConstants class
>>            compile:
>> b key asString withFirstCharacterDownshifted,'
>> 
>>    ^',b key
>>            classified: 'magic accessors'
>>            notifying: nil.
>>    ].
>> 
>> 
>> although I wasn't sure exactly where you wanted the methods.
>> 
>> On 3/5/13 3:38 PM, Louis LaBrunda wrote:
>>> What I need is (what I expect is one) line of code that will compile the
>>> contents of #stream as a method of Minecraft. Can you help with that?
> -----------------------------------------------------------
> Louis LaBrunda
> Keystone Software Corp.
> SkypeMe callto://PhotonDemon
> mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com
> 
> 



More information about the Squeak-dev mailing list