Visualizing Your Business Data... 
in Minecraft! 
Pat Patterson 
Developer Evangelist Architect 
ppatterson@salesforce.com 
@metadaddy
Safe Harbor 
Safe harbor statement under the Private Securities Litigation Reform Act of 1995: 
This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of 
the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking 
statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service 
availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future 
operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of 
our services. 
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, 
new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or 
delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and 
acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and 
manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization 
and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our 
annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and 
others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. 
Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be 
delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. 
Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
Pat Patterson 
Developer Evangelist Architect
Why Minecraft? 
•Cheap ($26.95!) 3D Engine 
•Java 
•Vast community of developers (‘modders’) 
•Plugin Architecture (via Forge etc) 
•Access to source code (kinda) 
•It’s fun! 
Image used under CC-BY-NC. Attribution: Orthotope on minecraft.gamepedia.com
Getting Started 
• Prerequisites: 
– Java JDK 6 or 7 
– An 8-15 year old helper (optional, but recommended!) 
• Buy, download, install Minecraft 
–minecraft.net/store/minecraft 
• Download, install Forge (src build) 
–www.minecraftforge.net/wiki/Installation/Source 
• Follow some tutorials 
–www.minecraftforge.net/wiki/Tutorials 
Image used under CC-BY-NC. Attribution: Ventury on minecraft.gamepedia.com
A Blast from the Past: Client-Server! 
•One Minecraft server may support 
many clients 
•Server maintains world state for all players 
•Client renders world for a player 
Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
Modding Options 
• Server-only 
+ Allows unmodded (‘vanilla’ clients) 
- Can’t add blocks, items 
• Client-only 
+ Can customize graphics 
- Can’t add blocks, items 
• Client+server 
+ New blocks, items, graphics – go nuts! 
- Both client & server need the mod 
Image used under CC-BY-NC. Attribution: Jackbro123 on minecraft.gamepedia.com
Going Beyond the Basics 
•Calling Web APIs 
–Pick your favorite Java HTTP client 
–Modify Forge’s build.gradle to create an 
‘uber-jar’ 
–Use the Gradle Shadow plugin to shade your external 
dependencies 
• github.com/johnrengelman/shadow 
Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
Forcecraft 
• “What if I generated an entire dimension 
based on account data from Salesforce?” 
– Neuromancer’s Cyberspace 
– github.com/metadaddy-sfdc/Forcecraft
Eye Candy!!! 
Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
Code
APIs in Play 
• OAuth 2.0 Resource Owner 
Password Credentials Grant 
– Username/password 
• Force.com REST API 
– /services/data/v31.0/query?q=SELECT+… 
– /services/data/v31.0/sobjects/Account/… 
• Force.com Streaming API 
– new BayeuxClient( 
salesforceStreamingEndpoint(endpoint), 
transport); 
Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
An Alternate Direction 
•Minecraft Pi Edition 
– pi.minecraft.net 
– Similar to early versions of Pocket Edition (Android/iOS) 
• API included! 
– Python, Java client libs bundled 
– Ruby, Node.js and more from community 
• Real world / game world interaction via Raspberry Pi GPIO 
pins 
– bit.ly/rpi-mc 
Images used under CC-BY-NC. Attribution: Majr on minecraft.gamepedia.com
Hardware! 
Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
Resources 
•Minecraft 
– minecraft.net 
• Minecraft Forge 
– www.minecraftforge.net 
•Modding Tutorials 
– www.minecraftforge.net/wiki/Tutorials 
• Forcecraft 
– github.com/metadaddy-sfdc/Forcecraft 
• Minecraft Pi Edition 
– pi.minecraft.net 
Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
Thank You! 
Image courtesy of Alex Patterson (age 10)

Visualizing Your Business Data... in Minecraft!

  • 1.
    Visualizing Your BusinessData... in Minecraft! Pat Patterson Developer Evangelist Architect ppatterson@salesforce.com @metadaddy
  • 2.
    Safe Harbor Safeharbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 3.
    Pat Patterson DeveloperEvangelist Architect
  • 4.
    Why Minecraft? •Cheap($26.95!) 3D Engine •Java •Vast community of developers (‘modders’) •Plugin Architecture (via Forge etc) •Access to source code (kinda) •It’s fun! Image used under CC-BY-NC. Attribution: Orthotope on minecraft.gamepedia.com
  • 5.
    Getting Started •Prerequisites: – Java JDK 6 or 7 – An 8-15 year old helper (optional, but recommended!) • Buy, download, install Minecraft –minecraft.net/store/minecraft • Download, install Forge (src build) –www.minecraftforge.net/wiki/Installation/Source • Follow some tutorials –www.minecraftforge.net/wiki/Tutorials Image used under CC-BY-NC. Attribution: Ventury on minecraft.gamepedia.com
  • 6.
    A Blast fromthe Past: Client-Server! •One Minecraft server may support many clients •Server maintains world state for all players •Client renders world for a player Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
  • 7.
    Modding Options •Server-only + Allows unmodded (‘vanilla’ clients) - Can’t add blocks, items • Client-only + Can customize graphics - Can’t add blocks, items • Client+server + New blocks, items, graphics – go nuts! - Both client & server need the mod Image used under CC-BY-NC. Attribution: Jackbro123 on minecraft.gamepedia.com
  • 8.
    Going Beyond theBasics •Calling Web APIs –Pick your favorite Java HTTP client –Modify Forge’s build.gradle to create an ‘uber-jar’ –Use the Gradle Shadow plugin to shade your external dependencies • github.com/johnrengelman/shadow Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
  • 9.
    Forcecraft • “Whatif I generated an entire dimension based on account data from Salesforce?” – Neuromancer’s Cyberspace – github.com/metadaddy-sfdc/Forcecraft
  • 10.
    Eye Candy!!! Imageused under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
  • 11.
  • 12.
    APIs in Play • OAuth 2.0 Resource Owner Password Credentials Grant – Username/password • Force.com REST API – /services/data/v31.0/query?q=SELECT+… – /services/data/v31.0/sobjects/Account/… • Force.com Streaming API – new BayeuxClient( salesforceStreamingEndpoint(endpoint), transport); Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
  • 13.
    An Alternate Direction •Minecraft Pi Edition – pi.minecraft.net – Similar to early versions of Pocket Edition (Android/iOS) • API included! – Python, Java client libs bundled – Ruby, Node.js and more from community • Real world / game world interaction via Raspberry Pi GPIO pins – bit.ly/rpi-mc Images used under CC-BY-NC. Attribution: Majr on minecraft.gamepedia.com
  • 14.
    Hardware! Image usedunder CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
  • 15.
    Resources •Minecraft –minecraft.net • Minecraft Forge – www.minecraftforge.net •Modding Tutorials – www.minecraftforge.net/wiki/Tutorials • Forcecraft – github.com/metadaddy-sfdc/Forcecraft • Minecraft Pi Edition – pi.minecraft.net Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com
  • 16.
    Thank You! Imagecourtesy of Alex Patterson (age 10)

Editor's Notes

  • #3 Key Takeaway: We are a publicly traded company. Please make your buying decisions only on the products commercially available from Salesforce.com. Talk Track: Before I begin, just a quick note that when considering future developments, whether by us or with any other solution provider, you should always base your purchasing decisions on what is currently available.