bukkit-api 0.0.1.pre.99
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +22 -0
- data/.travis.yml +46 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +674 -0
- data/README.md +25 -0
- data/Rakefile +8 -0
- data/bukkit-api.gemspec +26 -0
- data/lib/bukkit.rb +23 -0
- data/lib/bukkit/achievement.rb +84 -0
- data/lib/bukkit/achievement/acquire_iron.rb +15 -0
- data/lib/bukkit/achievement/bake_cake.rb +15 -0
- data/lib/bukkit/achievement/bookcase.rb +15 -0
- data/lib/bukkit/achievement/breed_cow.rb +15 -0
- data/lib/bukkit/achievement/brew_potion.rb +15 -0
- data/lib/bukkit/achievement/build_better_pickaxe.rb +15 -0
- data/lib/bukkit/achievement/build_furnace.rb +15 -0
- data/lib/bukkit/achievement/build_hoe.rb +15 -0
- data/lib/bukkit/achievement/build_pickaxe.rb +15 -0
- data/lib/bukkit/achievement/build_sword.rb +15 -0
- data/lib/bukkit/achievement/build_workbench.rb +15 -0
- data/lib/bukkit/achievement/cook_fish.rb +15 -0
- data/lib/bukkit/achievement/diamonds_to_you.rb +15 -0
- data/lib/bukkit/achievement/enchantments.rb +15 -0
- data/lib/bukkit/achievement/end_portal.rb +15 -0
- data/lib/bukkit/achievement/explore_all_biomes.rb +15 -0
- data/lib/bukkit/achievement/fly_pig.rb +15 -0
- data/lib/bukkit/achievement/full_beacon.rb +15 -0
- data/lib/bukkit/achievement/get_blaze_rod.rb +15 -0
- data/lib/bukkit/achievement/get_diamonds.rb +15 -0
- data/lib/bukkit/achievement/ghast_return.rb +15 -0
- data/lib/bukkit/achievement/kill_cow.rb +15 -0
- data/lib/bukkit/achievement/kill_enemy.rb +15 -0
- data/lib/bukkit/achievement/kill_wither.rb +15 -0
- data/lib/bukkit/achievement/make_bread.rb +15 -0
- data/lib/bukkit/achievement/mine_wood.rb +15 -0
- data/lib/bukkit/achievement/nether_portal.rb +15 -0
- data/lib/bukkit/achievement/on_a_rail.rb +15 -0
- data/lib/bukkit/achievement/open_inventory.rb +12 -0
- data/lib/bukkit/achievement/overkill.rb +15 -0
- data/lib/bukkit/achievement/snipe_skeleton.rb +15 -0
- data/lib/bukkit/achievement/spawn_wither.rb +15 -0
- data/lib/bukkit/achievement/the_end.rb +15 -0
- data/lib/bukkit/art.rb +88 -0
- data/lib/bukkit/art/alban.rb +15 -0
- data/lib/bukkit/art/aztec.rb +15 -0
- data/lib/bukkit/art/aztec2.rb +15 -0
- data/lib/bukkit/art/bomb.rb +15 -0
- data/lib/bukkit/art/burningskull.rb +15 -0
- data/lib/bukkit/art/bust.rb +15 -0
- data/lib/bukkit/art/courbet.rb +15 -0
- data/lib/bukkit/art/creebet.rb +15 -0
- data/lib/bukkit/art/donkeykong.rb +15 -0
- data/lib/bukkit/art/fighters.rb +15 -0
- data/lib/bukkit/art/graham.rb +15 -0
- data/lib/bukkit/art/kebab.rb +15 -0
- data/lib/bukkit/art/match.rb +15 -0
- data/lib/bukkit/art/pigscene.rb +15 -0
- data/lib/bukkit/art/plant.rb +15 -0
- data/lib/bukkit/art/pointer.rb +15 -0
- data/lib/bukkit/art/pool.rb +15 -0
- data/lib/bukkit/art/sea.rb +15 -0
- data/lib/bukkit/art/skeleton.rb +15 -0
- data/lib/bukkit/art/skull_and_roses.rb +15 -0
- data/lib/bukkit/art/stage.rb +15 -0
- data/lib/bukkit/art/sunset.rb +15 -0
- data/lib/bukkit/art/void.rb +15 -0
- data/lib/bukkit/art/wanderer.rb +15 -0
- data/lib/bukkit/art/wasteland.rb +15 -0
- data/lib/bukkit/art/wither.rb +15 -0
- data/lib/bukkit/ban_entry.rb +33 -0
- data/lib/bukkit/ban_list.rb +58 -0
- data/lib/bukkit/block.rb +11 -0
- data/lib/bukkit/block/beacon.rb +11 -0
- data/lib/bukkit/block/biome.rb +11 -0
- data/lib/bukkit/block/block_face.rb +11 -0
- data/lib/bukkit/block/block_state.rb +11 -0
- data/lib/bukkit/block/brewing_stand.rb +11 -0
- data/lib/bukkit/block/chest.rb +11 -0
- data/lib/bukkit/block/command_block.rb +11 -0
- data/lib/bukkit/block/container_block.rb +11 -0
- data/lib/bukkit/block/creature_spawner.rb +11 -0
- data/lib/bukkit/block/dispenser.rb +11 -0
- data/lib/bukkit/block/double_chest.rb +11 -0
- data/lib/bukkit/block/dropper.rb +11 -0
- data/lib/bukkit/block/furnace.rb +11 -0
- data/lib/bukkit/block/hopper.rb +11 -0
- data/lib/bukkit/block/jukebox.rb +11 -0
- data/lib/bukkit/block/note_block.rb +11 -0
- data/lib/bukkit/block/piston_move_retraction.rb +11 -0
- data/lib/bukkit/block/sign.rb +11 -0
- data/lib/bukkit/block/skull.rb +11 -0
- data/lib/bukkit/block_change_delegate.rb +24 -0
- data/lib/bukkit/chat_color.rb +7 -0
- data/lib/bukkit/chunk.rb +7 -0
- data/lib/bukkit/chunk_snapshot.rb +7 -0
- data/lib/bukkit/coal_type.rb +7 -0
- data/lib/bukkit/color.rb +7 -0
- data/lib/bukkit/command.rb +11 -0
- data/lib/bukkit/command/block_command_sender.rb +11 -0
- data/lib/bukkit/command/command_exception.rb +11 -0
- data/lib/bukkit/command/command_map.rb +11 -0
- data/lib/bukkit/command/command_sender.rb +11 -0
- data/lib/bukkit/command/console_command_sender.rb +11 -0
- data/lib/bukkit/command/defaults.rb +15 -0
- data/lib/bukkit/command/defaults/achievement_command.rb +15 -0
- data/lib/bukkit/command/defaults/ban_command.rb +15 -0
- data/lib/bukkit/command/defaults/ban_ip_command.rb +15 -0
- data/lib/bukkit/command/defaults/ban_list_command.rb +15 -0
- data/lib/bukkit/command/defaults/bukkit_command.rb +15 -0
- data/lib/bukkit/command/defaults/clear_command.rb +15 -0
- data/lib/bukkit/command/defaults/default_game_mode_command.rb +15 -0
- data/lib/bukkit/command/defaults/deop_command.rb +15 -0
- data/lib/bukkit/command/defaults/difficulty_command.rb +15 -0
- data/lib/bukkit/command/defaults/effect_command.rb +15 -0
- data/lib/bukkit/command/defaults/enchant_command.rb +15 -0
- data/lib/bukkit/command/defaults/exp_command.rb +15 -0
- data/lib/bukkit/command/defaults/game_mode_command.rb +15 -0
- data/lib/bukkit/command/defaults/game_rule_command.rb +15 -0
- data/lib/bukkit/command/defaults/give_command.rb +15 -0
- data/lib/bukkit/command/defaults/help_command.rb +15 -0
- data/lib/bukkit/command/defaults/kick_command.rb +15 -0
- data/lib/bukkit/command/defaults/kill_command.rb +15 -0
- data/lib/bukkit/command/defaults/list_command.rb +15 -0
- data/lib/bukkit/command/defaults/me_command.rb +15 -0
- data/lib/bukkit/command/defaults/op_command.rb +15 -0
- data/lib/bukkit/command/defaults/pardon_command.rb +15 -0
- data/lib/bukkit/command/defaults/pardon_ip_command.rb +15 -0
- data/lib/bukkit/command/defaults/play_sound_command.rb +15 -0
- data/lib/bukkit/command/defaults/plugins_command.rb +15 -0
- data/lib/bukkit/command/defaults/reload_command.rb +15 -0
- data/lib/bukkit/command/defaults/save_command.rb +15 -0
- data/lib/bukkit/command/defaults/save_off_command.rb +15 -0
- data/lib/bukkit/command/defaults/say_command.rb +15 -0
- data/lib/bukkit/command/defaults/scoreboard_command.rb +15 -0
- data/lib/bukkit/command/defaults/seed_command.rb +15 -0
- data/lib/bukkit/command/defaults/set_idle_timeout_command.rb +15 -0
- data/lib/bukkit/command/defaults/set_world_spawn_command.rb +15 -0
- data/lib/bukkit/command/defaults/spawnpoint_command.rb +15 -0
- data/lib/bukkit/command/defaults/spread_players_command.rb +15 -0
- data/lib/bukkit/command/defaults/stop_command.rb +15 -0
- data/lib/bukkit/command/defaults/teleport_command.rb +15 -0
- data/lib/bukkit/command/defaults/tell_command.rb +15 -0
- data/lib/bukkit/command/defaults/test_for_command.rb +15 -0
- data/lib/bukkit/command/defaults/time_command.rb +15 -0
- data/lib/bukkit/command/defaults/timings_command.rb +15 -0
- data/lib/bukkit/command/defaults/toggle_downfall_command.rb +15 -0
- data/lib/bukkit/command/defaults/vanilla_command.rb +15 -0
- data/lib/bukkit/command/defaults/version_command.rb +15 -0
- data/lib/bukkit/command/defaults/weather_command.rb +15 -0
- data/lib/bukkit/command/defaults/whitelist_command.rb +15 -0
- data/lib/bukkit/command/formatted_command_alias.rb +11 -0
- data/lib/bukkit/command/multiple_command_alias.rb +11 -0
- data/lib/bukkit/command/plugin_command.rb +11 -0
- data/lib/bukkit/command/plugin_command_yaml_parser.rb +11 -0
- data/lib/bukkit/command/plugin_identifiable_command.rb +11 -0
- data/lib/bukkit/command/remote_console_command_sender.rb +11 -0
- data/lib/bukkit/command/simple_command_map.rb +11 -0
- data/lib/bukkit/command/tab_command_executor.rb +11 -0
- data/lib/bukkit/command/tab_completer.rb +11 -0
- data/lib/bukkit/command/tab_executor.rb +11 -0
- data/lib/bukkit/configuration.rb +11 -0
- data/lib/bukkit/configuration/configuration_options.rb +11 -0
- data/lib/bukkit/configuration/configuration_section.rb +11 -0
- data/lib/bukkit/configuration/file.rb +15 -0
- data/lib/bukkit/configuration/file/file_configuration.rb +15 -0
- data/lib/bukkit/configuration/file/file_configuration_options.rb +15 -0
- data/lib/bukkit/configuration/file/yaml_configuration.rb +15 -0
- data/lib/bukkit/configuration/file/yaml_configuration_options.rb +15 -0
- data/lib/bukkit/configuration/file/yaml_constructor.rb +15 -0
- data/lib/bukkit/configuration/file/yaml_representer.rb +15 -0
- data/lib/bukkit/configuration/invalid_configuration_exception.rb +11 -0
- data/lib/bukkit/configuration/memory_configuration.rb +11 -0
- data/lib/bukkit/configuration/memory_section.rb +11 -0
- data/lib/bukkit/configuration/serialization.rb +15 -0
- data/lib/bukkit/configuration/serialization/configuration_seriablization.rb +15 -0
- data/lib/bukkit/configuration/serialization/configuration_serializable.rb +15 -0
- data/lib/bukkit/configuration/serialization/delegate_deserialization.rb +15 -0
- data/lib/bukkit/configuration/serialization/serializable_as.rb +15 -0
- data/lib/bukkit/crop_state.rb +7 -0
- data/lib/bukkit/difficulty.rb +7 -0
- data/lib/bukkit/dye_color.rb +7 -0
- data/lib/bukkit/effect.rb +7 -0
- data/lib/bukkit/enchantment.rb +11 -0
- data/lib/bukkit/enchantments/enchantment_target.rb +11 -0
- data/lib/bukkit/enchantments/enchantment_wrapper.rb +11 -0
- data/lib/bukkit/entity_effect.rb +7 -0
- data/lib/bukkit/firework_effect.rb +7 -0
- data/lib/bukkit/game_mode.rb +7 -0
- data/lib/bukkit/game_species.rb +7 -0
- data/lib/bukkit/instrument.rb +7 -0
- data/lib/bukkit/location.rb +7 -0
- data/lib/bukkit/material.rb +7 -0
- data/lib/bukkit/nether_warts_state.rb +7 -0
- data/lib/bukkit/note.rb +7 -0
- data/lib/bukkit/offline_player.rb +7 -0
- data/lib/bukkit/plugin/messaging/plugin_message_recipient.rb +11 -0
- data/lib/bukkit/portal_type.rb +7 -0
- data/lib/bukkit/rotation.rb +7 -0
- data/lib/bukkit/sandstone_type.rb +7 -0
- data/lib/bukkit/server.rb +41 -0
- data/lib/bukkit/server/commands.rb +23 -0
- data/lib/bukkit/server/config.rb +20 -0
- data/lib/bukkit/server/info.rb +38 -0
- data/lib/bukkit/server/network.rb +58 -0
- data/lib/bukkit/server/players.rb +44 -0
- data/lib/bukkit/server/processing.rb +53 -0
- data/lib/bukkit/server/recipes.rb +23 -0
- data/lib/bukkit/server/whitelist.rb +23 -0
- data/lib/bukkit/server/world.rb +47 -0
- data/lib/bukkit/skull_type.rb +7 -0
- data/lib/bukkit/sound.rb +7 -0
- data/lib/bukkit/statistic.rb +7 -0
- data/lib/bukkit/travel_agent.rb +7 -0
- data/lib/bukkit/tree_species.rb +7 -0
- data/lib/bukkit/tree_type.rb +7 -0
- data/lib/bukkit/unsafe_values.rb +7 -0
- data/lib/bukkit/utility.rb +7 -0
- data/lib/bukkit/version.rb +3 -0
- data/lib/bukkit/warning.rb +7 -0
- data/lib/bukkit/weather_type.rb +7 -0
- data/lib/bukkit/world.rb +7 -0
- data/lib/bukkit/world_creator.rb +7 -0
- data/lib/bukkit/world_type.rb +50 -0
- data/lib/bukkit/world_type/amplified.rb +15 -0
- data/lib/bukkit/world_type/flat.rb +15 -0
- data/lib/bukkit/world_type/large_biomes.rb +15 -0
- data/lib/bukkit/world_type/normal.rb +15 -0
- data/lib/bukkit/world_type/version_1_1.rb +15 -0
- data/spec/lib/achievement_spec.rb +383 -0
- data/spec/lib/art_spec.rb +566 -0
- data/spec/spec_helper.rb +17 -0
- metadata +336 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
require_relative 'plugin/messaging/plugin_message_recipient'
|
2
|
+
|
3
|
+
require_relative 'server/commands'
|
4
|
+
require_relative 'server/config'
|
5
|
+
require_relative 'server/info'
|
6
|
+
require_relative 'server/network'
|
7
|
+
require_relative 'server/players'
|
8
|
+
require_relative 'server/processing'
|
9
|
+
require_relative 'server/recipes'
|
10
|
+
require_relative 'server/whitelist'
|
11
|
+
require_relative 'server/world'
|
12
|
+
|
13
|
+
class Bukkit
|
14
|
+
|
15
|
+
module Server
|
16
|
+
include Bukkit::Messaging::PluginMessageRecipient
|
17
|
+
|
18
|
+
BROADCAST_CHANNEL_ADMINISTRATIVE = 'bukkit.broadcast.admin'
|
19
|
+
|
20
|
+
BROADCAST_CHANNEL_USERS = 'bukkit.broadcast.user'
|
21
|
+
|
22
|
+
include Bukkit::Server::Commands
|
23
|
+
include Bukkit::Server::Config
|
24
|
+
include Bukkit::Server::Info
|
25
|
+
include Bukkit::Server::Network
|
26
|
+
include Bukkit::Server::Players
|
27
|
+
include Bukkit::Server::Processing
|
28
|
+
include Bukkit::Server::Recipes
|
29
|
+
include Bukkit::Server::Whitelist
|
30
|
+
include Bukkit::Server::World
|
31
|
+
|
32
|
+
def reload; end
|
33
|
+
|
34
|
+
def logger; end
|
35
|
+
alias_method :getLogger, :logger
|
36
|
+
|
37
|
+
def shutdown; end
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class Bukkit
|
2
|
+
|
3
|
+
module Server
|
4
|
+
|
5
|
+
module Commands
|
6
|
+
|
7
|
+
def plugin_command(name); end
|
8
|
+
alias_method :getPluginCommand, :plugin_command
|
9
|
+
|
10
|
+
def dispatch_command(sender, command_line); end
|
11
|
+
alias_method :dispatchCommand, :dispatch_command
|
12
|
+
|
13
|
+
def help_map; end
|
14
|
+
alias_method :getHelpMap, :help_map
|
15
|
+
|
16
|
+
def command_aliases; end
|
17
|
+
alias_method :getCommandAliases, :command_aliases
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class Bukkit
|
2
|
+
|
3
|
+
module Server
|
4
|
+
|
5
|
+
module Config
|
6
|
+
|
7
|
+
def configure_db_config(config); end
|
8
|
+
alias_method :configureDbConfig, :configure_db_config
|
9
|
+
|
10
|
+
def default_game_mode; end
|
11
|
+
alias_method :getDefaultGameMode, :default_game_mode
|
12
|
+
|
13
|
+
def default_game_mode=(mode); end
|
14
|
+
alias_method :setDefaultGameMode, :default_game_mode=
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class Bukkit
|
2
|
+
|
3
|
+
module Server
|
4
|
+
|
5
|
+
module Info
|
6
|
+
|
7
|
+
def name; end
|
8
|
+
alias_method :getName, :name
|
9
|
+
|
10
|
+
def version; end
|
11
|
+
alias_method :getVersion, :version
|
12
|
+
|
13
|
+
def bukkit_version; end
|
14
|
+
alias_method :getBukkitVersion, :bukkit_version
|
15
|
+
|
16
|
+
def view_distance; end
|
17
|
+
alias_method :getViewDistance, :view_distance
|
18
|
+
|
19
|
+
def server_name; end
|
20
|
+
alias_method :getServerName, :server_name
|
21
|
+
|
22
|
+
def server_id; end
|
23
|
+
alias_method :getServerId, :server_id
|
24
|
+
|
25
|
+
def online_mode?; end
|
26
|
+
alias_method :getOnlineMode, :online_mode?
|
27
|
+
|
28
|
+
def allow_flight?; end
|
29
|
+
alias_method :getAllowFlight, :allow_flight?
|
30
|
+
|
31
|
+
def hardcore?; end
|
32
|
+
alias_method :isHardcore, :hardcore?
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
class Bukkit
|
2
|
+
|
3
|
+
module Server
|
4
|
+
|
5
|
+
module Network
|
6
|
+
|
7
|
+
def port; end
|
8
|
+
alias_method :getPort, :port
|
9
|
+
|
10
|
+
def ip; end
|
11
|
+
alias_method :getIp, :ip
|
12
|
+
|
13
|
+
def motd; end
|
14
|
+
alias_method :getMotd, :motd
|
15
|
+
|
16
|
+
def server_icon; end
|
17
|
+
alias_method :getServerIcon, :server_icon
|
18
|
+
|
19
|
+
def server_icon=(image); end
|
20
|
+
alias_method :loadServerIcon, :server_icon=
|
21
|
+
|
22
|
+
def idle_timeout=(threshold); end
|
23
|
+
alias_method :setIdleTimeout, :idle_timeout=
|
24
|
+
|
25
|
+
def idle_timeout; end
|
26
|
+
alias_method :getIdleTimeout, :idle_timeout
|
27
|
+
|
28
|
+
def ip_bans; end
|
29
|
+
alias_method :getIPBans, :ip_bans
|
30
|
+
|
31
|
+
def ban_ip; end
|
32
|
+
alias_method :banIP, :ban_ip
|
33
|
+
|
34
|
+
def unban_ip; end
|
35
|
+
alias_method :unbanIP, :unban_ip
|
36
|
+
|
37
|
+
def broadcast_message(message); end
|
38
|
+
alias_method :broadcastMessage, :broadcast_message
|
39
|
+
|
40
|
+
def broadcast(message, permission); end
|
41
|
+
|
42
|
+
def connection_throttle; end
|
43
|
+
alias_method :getConnectionThrottle, :connection_throttle
|
44
|
+
|
45
|
+
def shutdown_message; end
|
46
|
+
alias_method :getShutdownMessage, :shutdown_message
|
47
|
+
|
48
|
+
def console_sender; end
|
49
|
+
alias_method :getConsoleSender, :console_sender
|
50
|
+
|
51
|
+
def messenger; end
|
52
|
+
alias_method :getMessenger, :messenger
|
53
|
+
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
class Bukkit
|
2
|
+
|
3
|
+
module Server
|
4
|
+
|
5
|
+
module Players
|
6
|
+
|
7
|
+
def online_players; end
|
8
|
+
alias_method :getOnlinePlayers, :online_players
|
9
|
+
|
10
|
+
def max_players; end
|
11
|
+
alias_method :getMaxPlayers, :max_players
|
12
|
+
|
13
|
+
def player(id); end
|
14
|
+
alias_method :getPlayer, :player
|
15
|
+
|
16
|
+
def plugin_manager; end
|
17
|
+
alias_method :getPluginManager, :plugin_manager
|
18
|
+
|
19
|
+
def save_players; end
|
20
|
+
alias_method :savePlayers, :save_players
|
21
|
+
|
22
|
+
def banned_players; end
|
23
|
+
alias_method :getBannedPlayers, :banned_players
|
24
|
+
|
25
|
+
def ban_list(type); end
|
26
|
+
alias_method :getBanList, :ban_list
|
27
|
+
|
28
|
+
def operators; end
|
29
|
+
alias_method :getOperators, :operators
|
30
|
+
|
31
|
+
def offline_player(id); end
|
32
|
+
alias_method :getOfflinePlayer, :offline_player
|
33
|
+
|
34
|
+
def offline_players; end
|
35
|
+
alias_method :getOfflinePlayers, :offline_players
|
36
|
+
|
37
|
+
def exact_login_location?; end
|
38
|
+
alias_method :useExactLoginLocation, :exact_login_location?
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
class Bukkit
|
2
|
+
|
3
|
+
module Server
|
4
|
+
|
5
|
+
module Processing
|
6
|
+
|
7
|
+
def update_folder; end
|
8
|
+
alias_method :getUpdateFolder, :update_folder
|
9
|
+
|
10
|
+
def update_folder_file; end
|
11
|
+
alias_method :getUpdateFolderFile, :update_folder_file
|
12
|
+
|
13
|
+
def ticks_per_animal_spawns; end
|
14
|
+
alias_method :getTicksPerAnimalSpawns, :ticks_per_animal_spawns
|
15
|
+
|
16
|
+
def ticks_per_monster_spawns; end
|
17
|
+
alias_method :getTicksPerMonsterSpawns, :ticks_per_monster_spawns
|
18
|
+
|
19
|
+
def scheduler; end
|
20
|
+
alias_method :getScheduler, :scheduler
|
21
|
+
|
22
|
+
def services_manager; end
|
23
|
+
alias_method :getServicesManager, :services_manager
|
24
|
+
|
25
|
+
def monster_spawn_limit; end
|
26
|
+
alias_method :getMonsterSpawnLimit, :monster_spawn_limit
|
27
|
+
|
28
|
+
def animal_spawn_limit; end
|
29
|
+
alias_method :getAnimalSpawnLimit, :animal_spawn_limit
|
30
|
+
|
31
|
+
def water_animal_spawn_limit; end
|
32
|
+
alias_method :getWaterAnimalSpawnLimit, :water_animal_spawn_limit
|
33
|
+
|
34
|
+
def ambient_spawn_limit; end
|
35
|
+
alias_method :getAmbientSpawnLimit, :ambient_spawn_limit
|
36
|
+
|
37
|
+
def primary_thread?; end
|
38
|
+
alias_method :isPrimaryThread, :primary_thread?
|
39
|
+
|
40
|
+
def warning_state; end
|
41
|
+
alias_method :getWarningState, :warning_state
|
42
|
+
|
43
|
+
def item_factory; end
|
44
|
+
alias_method :getItemFactory, :item_factory
|
45
|
+
|
46
|
+
def scoreboard_manager; end
|
47
|
+
alias_method :getScoreboardManager, :scoreboard_manager
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class Bukkit
|
2
|
+
|
3
|
+
module Server
|
4
|
+
|
5
|
+
module Recipes
|
6
|
+
|
7
|
+
def add_recipe(recipe); end
|
8
|
+
alias_method :addRecipe, :add_recipe
|
9
|
+
|
10
|
+
def recipes_for(result); end
|
11
|
+
alias_method :getRecipesFor, :recipes_for
|
12
|
+
|
13
|
+
def clear_recipes; end
|
14
|
+
alias_method :clearRecipes, :clear_recipes
|
15
|
+
|
16
|
+
def reset_recipes; end
|
17
|
+
alias_method :resetRecipes, :reset_recipes
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class Bukkit
|
2
|
+
|
3
|
+
module Server
|
4
|
+
|
5
|
+
module Whitelist
|
6
|
+
|
7
|
+
def whitelist?; end
|
8
|
+
alias_method :hasWhitelist, :whitelist?
|
9
|
+
|
10
|
+
def whitelist=(value); end
|
11
|
+
alias_method :setWhitelist, :whitelist=
|
12
|
+
|
13
|
+
def whitelisted_players; end
|
14
|
+
alias_method :getWhitelistedPlayers, :whitelisted_players
|
15
|
+
|
16
|
+
def reload_whitelist; end
|
17
|
+
alias_method :reloadWhitelist, :reload_whitelist
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
class Bukkit
|
2
|
+
|
3
|
+
module Server
|
4
|
+
|
5
|
+
module World
|
6
|
+
|
7
|
+
def world_type; end
|
8
|
+
alias_method :getWorldType, :world_type
|
9
|
+
|
10
|
+
def generate_structures?; end
|
11
|
+
alias_method :getGenerateStructures, :generate_structures?
|
12
|
+
|
13
|
+
def allow_end?; end
|
14
|
+
alias_method :getAllowEnd, :allow_end?
|
15
|
+
|
16
|
+
def allow_nether?; end
|
17
|
+
alias_method :getAllowNether, :allow_nether?
|
18
|
+
|
19
|
+
def worlds; end
|
20
|
+
alias_method :getWorlds, :worlds
|
21
|
+
|
22
|
+
def create_world(creator); end
|
23
|
+
alias_method :createWorld, :create_world
|
24
|
+
|
25
|
+
def unload_world(name, should_save); end
|
26
|
+
alias_method :unloadWorld, :unload_world
|
27
|
+
|
28
|
+
def world(name_or_uuid); end
|
29
|
+
alias_method :getWorld, :world
|
30
|
+
|
31
|
+
def create_map(world); end
|
32
|
+
alias_method :createMap, :create_map
|
33
|
+
|
34
|
+
def world_container; end
|
35
|
+
alias_method :getWorldContainer, :world_container
|
36
|
+
|
37
|
+
def create_inventory(*options); end
|
38
|
+
alias_method :createInventory, :create_inventory
|
39
|
+
|
40
|
+
def spawn_radius; end
|
41
|
+
alias_method :getSpawnRadius, :spawn_radius
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
data/lib/bukkit/sound.rb
ADDED