module MojangApi
Constants
- VERSION
Public Class Methods
get_name_from_uuid(uuid, opts={})
click to toggle source
# File lib/mojang_api.rb, line 29 def self.get_name_from_uuid(uuid, opts={}) get_profile_from_uuid(uuid, opts).name end
get_profile_from_name(name, opts={})
click to toggle source
# File lib/mojang_api.rb, line 8 def self.get_profile_from_name(name, opts={}) game = opts.fetch(:game, 'minecraft') uuid_time = opts.fetch(:at_time, Time.now) p = Profile.new name: name, uuid_time: uuid_time, game: game p.load_uuid p end
get_profile_from_uuid(uuid, opts={})
click to toggle source
# File lib/mojang_api.rb, line 21 def self.get_profile_from_uuid(uuid, opts={}) game = opts.fetch(:game, 'minecraft') p = Profile.new uuid: uuid, game: game p.load_name p end
get_profiles_from_name_list(name_list)
click to toggle source
# File lib/mojang_api.rb, line 33 def self.get_profiles_from_name_list(name_list) Profile.load_from_name_list(name_list) end
get_uuid_from_name(name, opts={})
click to toggle source
# File lib/mojang_api.rb, line 17 def self.get_uuid_from_name(name, opts={}) get_profile_from_name(name, opts).uuid end