First of all I don't really like the prefixs (prefixes?) Like player.whatever. but that's just my opinion so whatever. As for the names, how about getInventorySlot(whatever) for player slots and getChestSlot(whatever) for chests?
First of all I don't really like the prefixs (prefixes?) Like player.whatever. but that's just my opinion so whatever. As for the names, how about getInventorySlot(whatever) for player slots and getChestSlot(whatever) for chests?
I like the prefixes (I call them namespaces; Treebl calls them OOP-Styled), as it tells the script writer what type of method one is calling, so I'll be moving all new methods into that style.
I agree although I do not have an Android device and BlockLauncher is not avalible to me, I believe the prefixes are good.
The Player inventory functions allows script users to see what you are carrying in your inventory. Currently, scripts can only see what you have in your hand.
I'm not mainly concerned with the prefixes: I am worried about the names themselves: i.e. getChestItem? getChestSlot? GetChestSlotItemId?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHowever, I don't really know how to name them.
The names used by KsyMC and MrARM are:
Which, as you can see, are a bit inconsistent (Slot vs Item, for example).
Can someone suggest better names for these methods?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI like the prefixes (I call them namespaces; Treebl calls them OOP-Styled), as it tells the script writer what type of method one is calling, so I'll be moving all new methods into that style.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumTreebl's the actual king. If he wants to rename all methods in ModPE in the Swahili language, I would have no choice but to follow.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumif (kupataBidhaaKatikaMkono() == 46) { kulipuka(x, y, z, 4.0) }-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThe Player inventory functions allows script users to see what you are carrying in your inventory. Currently, scripts can only see what you have in your hand.
I'm not mainly concerned with the prefixes: I am worried about the names themselves: i.e. getChestItem? getChestSlot? GetChestSlotItemId?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumOr Chest. ...
"one does not simply hook Creeper::getMaxHealth"