Class: Faker::Games::Minecraft

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/minecraft.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale

Class Method Details

.achievementString

Produces the name of an achievement from Minecraft.

Examples:

Faker::Games::Minecraft.achievement #=> "Time to Mine!"

Returns:



16
17
18
# File 'lib/faker/games/minecraft.rb', line 16

def achievement
  fetch('games.minecraft.achievement')
end

.biomeString

Produces the name of a biome from Minecraft.

Examples:

Faker::Games::Minecraft.biome #=> "Jungle"

Returns:



29
30
31
# File 'lib/faker/games/minecraft.rb', line 29

def biome
  fetch('games.minecraft.biome')
end

.blockString

Produces the name of a block from Minecraft.

Examples:

Faker::Games::Minecraft.block #=> "Stone"

Returns:



42
43
44
# File 'lib/faker/games/minecraft.rb', line 42

def block
  fetch('games.minecraft.blocks')
end

.enchantmentString

Produces the name of a enchantment from Minecraft.

Examples:

Faker::Games::Minecraft.enchantment #=> "Fire Protection"

Returns:



55
56
57
# File 'lib/faker/games/minecraft.rb', line 55

def enchantment
  fetch('games.minecraft.enchantment')
end

.game_modeString

Produces the name of a game mode from Minecraft.

Examples:

Faker::Games::Minecraft.game_mode #=> "Survival"

Returns:



68
69
70
# File 'lib/faker/games/minecraft.rb', line 68

def game_mode
  fetch('games.minecraft.game_mode')
end

.itemString

Produces the name of an item from Minecraft.

Examples:

Faker::Games::Minecraft.item #=> "Iron Shovel"

Returns:



81
82
83
# File 'lib/faker/games/minecraft.rb', line 81

def item
  fetch('games.minecraft.items')
end

.mobString

Produces the name of a mob from Minecraft.

Examples:

Faker::Games::Minecraft.mob #=> "Sheep"

Returns:



94
95
96
# File 'lib/faker/games/minecraft.rb', line 94

def mob
  fetch('games.minecraft.mobs')
end

.status_effectString

Produces the name of a status effect from Minecraft.

Examples:

Faker::Games::Minecraft.status_effect #=> "Weakness"

Returns:



107
108
109
# File 'lib/faker/games/minecraft.rb', line 107

def status_effect
  fetch('games.minecraft.status_effect')
end