29 lines
1.3 KiB
Protocol Buffer
29 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
package patchbukkit.bridge;
|
|
|
|
import "google/protobuf/empty.proto";
|
|
import "google/protobuf/wrappers.proto";
|
|
import "patchbukkit/abilities.proto";
|
|
import "patchbukkit/common/types.proto";
|
|
import "patchbukkit/events/event.proto";
|
|
import "patchbukkit/message.proto";
|
|
import "patchbukkit/registry.proto";
|
|
import "patchbukkit/sound.proto";
|
|
|
|
service NativeBridge {
|
|
rpc GetAbilities(patchbukkit.common.UUID) returns (patchbukkit.abilities.Abilities);
|
|
rpc SetAbilities(patchbukkit.abilities.SetAbilitiesRequest) returns (patchbukkit.abilities.SetAbilitiesResponse);
|
|
|
|
rpc RegisterEvent(patchbukkit.events.RegisterEventRequest) returns (google.protobuf.Empty);
|
|
rpc CallEvent(patchbukkit.events.CallEventRequest) returns (patchbukkit.events.CallEventResponse);
|
|
|
|
rpc SendMessage(patchbukkit.message.SendMessageRequest) returns (google.protobuf.Empty);
|
|
|
|
rpc GetLocation(patchbukkit.common.UUID) returns (patchbukkit.common.Location);
|
|
|
|
rpc GetRegistryData(patchbukkit.registry.GetRegistryDataRequest) returns (patchbukkit.registry.GetRegistryDataResponse);
|
|
|
|
rpc PlayerEntityPlaySound(patchbukkit.sound.PlayerEntityPlaySoundRequest) returns (google.protobuf.Empty);
|
|
rpc PlayerPlaySound(patchbukkit.sound.PlayerPlaySoundRequest) returns (google.protobuf.Empty);
|
|
}
|