class MinecraftPi::Client

Public Class Methods

new(address: 'localhost', port: 4711) click to toggle source
# File lib/minecraft-pi/client.rb, line 19
def initialize(address: 'localhost', port: 4711)
  @address = address.to_s
  @port = port.to_i
  self
end

Public Instance Methods

camera() click to toggle source
# File lib/minecraft-pi/client.rb, line 31
def camera
  @camera ||= Camera.new socket
end
chat() click to toggle source
# File lib/minecraft-pi/client.rb, line 36
def chat
  @chat ||= Chat.new socket
end
entity() click to toggle source
# File lib/minecraft-pi/client.rb, line 41
def entity
  @entity ||= Entity.new socket
end
events() click to toggle source
# File lib/minecraft-pi/client.rb, line 46
def events
  @events ||= Events.new socket
end
player() click to toggle source
# File lib/minecraft-pi/client.rb, line 51
def player
  @player ||= Player.new socket
end
socket() click to toggle source
# File lib/minecraft-pi/client.rb, line 26
def socket
  @socket ||= Socket.new(address: @address, port: @port)
end
world() click to toggle source
# File lib/minecraft-pi/client.rb, line 56
def world
  @world ||= World.new socket
end