gamerules_mock

package
v0.0.0-...-c982c26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockICommandFramework

type MockICommandFramework struct {
	// contains filtered or unexported fields
}

Mock of ICommandFramework interface

func NewMockICommandFramework

func NewMockICommandFramework(ctrl *gomock.Controller) *MockICommandFramework

func (*MockICommandFramework) EXPECT

func (_m *MockICommandFramework) EXPECT() *_MockICommandFrameworkRecorder

func (*MockICommandFramework) Prefix

func (_m *MockICommandFramework) Prefix() string

func (*MockICommandFramework) Process

func (_m *MockICommandFramework) Process(player IPlayerClient, cmd string, game IGame)

type MockIGame

type MockIGame struct {
	// contains filtered or unexported fields
}

Mock of IGame interface

func NewMockIGame

func NewMockIGame(ctrl *gomock.Controller) *MockIGame

func (*MockIGame) BroadcastMessage

func (_m *MockIGame) BroadcastMessage(msg string)

func (*MockIGame) BroadcastPacket

func (_m *MockIGame) BroadcastPacket(packet []byte)

func (*MockIGame) EXPECT

func (_m *MockIGame) EXPECT() *_MockIGameRecorder

func (*MockIGame) ItemTypeById

func (_m *MockIGame) ItemTypeById(id int) (ItemType, bool)

func (*MockIGame) PlayerByEntityId

func (_m *MockIGame) PlayerByEntityId(id EntityId) IPlayerClient

func (*MockIGame) PlayerByName

func (_m *MockIGame) PlayerByName(name string) IPlayerClient

type MockIPlayerClient

type MockIPlayerClient struct {
	// contains filtered or unexported fields
}

Mock of IPlayerClient interface

func NewMockIPlayerClient

func NewMockIPlayerClient(ctrl *gomock.Controller) *MockIPlayerClient

func (*MockIPlayerClient) EXPECT

func (_m *MockIPlayerClient) EXPECT() *_MockIPlayerClientRecorder

func (*MockIPlayerClient) EchoMessage

func (_m *MockIPlayerClient) EchoMessage(msg string)

func (*MockIPlayerClient) GetEntityId

func (_m *MockIPlayerClient) GetEntityId() EntityId

func (*MockIPlayerClient) GiveItem

func (_m *MockIPlayerClient) GiveItem(item Slot)

func (*MockIPlayerClient) GiveItemAtPosition

func (_m *MockIPlayerClient) GiveItemAtPosition(atPosition AbsXyz, item Slot)

func (*MockIPlayerClient) InventoryCursorUpdate

func (_m *MockIPlayerClient) InventoryCursorUpdate(block BlockXyz, cursor Slot)

func (*MockIPlayerClient) InventoryProgressUpdate

func (_m *MockIPlayerClient) InventoryProgressUpdate(block BlockXyz, prgBarId PrgBarId, value PrgBarValue)

func (*MockIPlayerClient) InventorySlotUpdate

func (_m *MockIPlayerClient) InventorySlotUpdate(block BlockXyz, slot Slot, slotId SlotId)

func (*MockIPlayerClient) InventorySubscribed

func (_m *MockIPlayerClient) InventorySubscribed(block BlockXyz, invTypeId InvTypeId, slots []proto.WindowSlot)

func (*MockIPlayerClient) InventoryTxState

func (_m *MockIPlayerClient) InventoryTxState(block BlockXyz, txId TxId, accepted bool)

func (*MockIPlayerClient) InventoryUnsubscribed

func (_m *MockIPlayerClient) InventoryUnsubscribed(block BlockXyz)

func (*MockIPlayerClient) NotifyChunkLoad

func (_m *MockIPlayerClient) NotifyChunkLoad()

func (*MockIPlayerClient) OfferItem

func (_m *MockIPlayerClient) OfferItem(fromChunk ChunkXz, entityId EntityId, item Slot)

func (*MockIPlayerClient) PlaceHeldItem

func (_m *MockIPlayerClient) PlaceHeldItem(target BlockXyz, wasHeld Slot)

func (*MockIPlayerClient) PositionLook

func (_m *MockIPlayerClient) PositionLook() (AbsXyz, LookDegrees)

func (*MockIPlayerClient) SetPositionLook

func (_m *MockIPlayerClient) SetPositionLook(_param0 AbsXyz, _param1 LookDegrees)

func (*MockIPlayerClient) TransmitPacket

func (_m *MockIPlayerClient) TransmitPacket(packet []byte)

type MockIPlayerShardClient

type MockIPlayerShardClient struct {
	// contains filtered or unexported fields
}

Mock of IPlayerShardClient interface

func NewMockIPlayerShardClient

func NewMockIPlayerShardClient(ctrl *gomock.Controller) *MockIPlayerShardClient

func (*MockIPlayerShardClient) Disconnect

func (_m *MockIPlayerShardClient) Disconnect()

func (*MockIPlayerShardClient) EXPECT

func (_m *MockIPlayerShardClient) EXPECT() *_MockIPlayerShardClientRecorder

func (*MockIPlayerShardClient) ReqAddPlayerData

func (_m *MockIPlayerShardClient) ReqAddPlayerData(chunkLoc ChunkXz, name string, position AbsXyz, look LookBytes, held ItemTypeId)

func (*MockIPlayerShardClient) ReqDropItem

func (_m *MockIPlayerShardClient) ReqDropItem(content Slot, position AbsXyz, velocity AbsVelocity, pickupImmunity Ticks)

func (*MockIPlayerShardClient) ReqHitBlock

func (_m *MockIPlayerShardClient) ReqHitBlock(held Slot, target BlockXyz, digStatus DigStatus, face Face)

func (*MockIPlayerShardClient) ReqInteractBlock

func (_m *MockIPlayerShardClient) ReqInteractBlock(held Slot, target BlockXyz, face Face)

func (*MockIPlayerShardClient) ReqInventoryClick

func (_m *MockIPlayerShardClient) ReqInventoryClick(block BlockXyz, click Click)

func (*MockIPlayerShardClient) ReqInventoryUnsubscribed

func (_m *MockIPlayerShardClient) ReqInventoryUnsubscribed(block BlockXyz)

func (*MockIPlayerShardClient) ReqMulticastPlayers

func (_m *MockIPlayerShardClient) ReqMulticastPlayers(chunkLoc ChunkXz, exclude EntityId, packet []byte)

func (*MockIPlayerShardClient) ReqPlaceItem

func (_m *MockIPlayerShardClient) ReqPlaceItem(target BlockXyz, slot Slot)

func (*MockIPlayerShardClient) ReqRemovePlayerData

func (_m *MockIPlayerShardClient) ReqRemovePlayerData(chunkLoc ChunkXz, isDisconnect bool)

func (*MockIPlayerShardClient) ReqSetPlayerLook

func (_m *MockIPlayerShardClient) ReqSetPlayerLook(chunkLoc ChunkXz, look LookBytes)

func (*MockIPlayerShardClient) ReqSetPlayerPosition

func (_m *MockIPlayerShardClient) ReqSetPlayerPosition(chunkLoc ChunkXz, position AbsXyz)

func (*MockIPlayerShardClient) ReqSubscribeChunk

func (_m *MockIPlayerShardClient) ReqSubscribeChunk(chunkLoc ChunkXz, notify bool)

func (*MockIPlayerShardClient) ReqTakeItem

func (_m *MockIPlayerShardClient) ReqTakeItem(chunkLoc ChunkXz, entityId EntityId)

func (*MockIPlayerShardClient) ReqUnsubscribeChunk

func (_m *MockIPlayerShardClient) ReqUnsubscribeChunk(chunkLoc ChunkXz)

type MockIShardConnecter

type MockIShardConnecter struct {
	// contains filtered or unexported fields
}

Mock of IShardConnecter interface

func NewMockIShardConnecter

func NewMockIShardConnecter(ctrl *gomock.Controller) *MockIShardConnecter

func (*MockIShardConnecter) EXPECT

func (_m *MockIShardConnecter) EXPECT() *_MockIShardConnecterRecorder

func (*MockIShardConnecter) PlayerShardConnect

func (_m *MockIShardConnecter) PlayerShardConnect(entityId EntityId, player IPlayerClient, shardLoc ShardXz) IPlayerShardClient

func (*MockIShardConnecter) ShardShardConnect

func (_m *MockIShardConnecter) ShardShardConnect(shardLoc ShardXz) IShardShardClient

type MockIShardShardClient

type MockIShardShardClient struct {
	// contains filtered or unexported fields
}

Mock of IShardShardClient interface

func NewMockIShardShardClient

func NewMockIShardShardClient(ctrl *gomock.Controller) *MockIShardShardClient

func (*MockIShardShardClient) Disconnect

func (_m *MockIShardShardClient) Disconnect()

func (*MockIShardShardClient) EXPECT

func (_m *MockIShardShardClient) EXPECT() *_MockIShardShardClientRecorder

func (*MockIShardShardClient) ReqSetActiveBlocks

func (_m *MockIShardShardClient) ReqSetActiveBlocks(blocks []BlockXyz)

func (*MockIShardShardClient) ReqTransferEntity

func (_m *MockIShardShardClient) ReqTransferEntity(loc ChunkXz, entity INonPlayerEntity)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL