Module: Fishbans::PlayerSkins
- Included in:
- Fishbans
- Defined in:
- lib/player_skins.rb
Instance Method Summary collapse
-
#get_player_front(username, size = 100) ⇒ ChunkyPNG::Image
Gets the image for the entire front of the player.
-
#get_player_head(username, size = 100) ⇒ ChunkyPNG::Image
Gets the image for the front face of the player head.
-
#get_player_skin(username, size = 64) ⇒ ChunkyPNG::Image
Gets the image for the player’s raw skin.
Instance Method Details
#get_player_front(username, size = 100) ⇒ ChunkyPNG::Image
Gets the image for the entire front of the player.
20 21 22 |
# File 'lib/player_skins.rb', line 20 def get_player_front(username, size = 100) get_player_image(username, 'player', size) end |
#get_player_head(username, size = 100) ⇒ ChunkyPNG::Image
Gets the image for the front face of the player head.
11 12 13 |
# File 'lib/player_skins.rb', line 11 def get_player_head(username, size = 100) get_player_image(username, 'helm', size) end |
#get_player_skin(username, size = 64) ⇒ ChunkyPNG::Image
Gets the image for the player’s raw skin.
29 30 31 |
# File 'lib/player_skins.rb', line 29 def get_player_skin(username, size = 64) get_player_image(username, 'skin', size) end |