Player api
This commit is contained in:
@@ -16,14 +16,15 @@ export interface ClientContext {
|
||||
// the way jei's recipes screen checks options.keyInventory
|
||||
options: KeyMappings;
|
||||
net: ClientNet;
|
||||
// is_swimming: lying flat in water in the 0.8 tall box, like minecraft's isSwimming. biome and season are where
|
||||
// their feet are, undefined until that chunk loads
|
||||
// is_swimming: lying flat in water in the 0.8 tall box, like minecraft's isSwimming. is_sneaking: holding the sneak
|
||||
// key, like isShiftKeyDown. biome and season are where their feet are, undefined until that chunk loads
|
||||
player: {
|
||||
readonly name: string;
|
||||
readonly position: Readonly<Position>;
|
||||
readonly biome: Id | undefined;
|
||||
readonly season: Season | undefined;
|
||||
is_swimming(): boolean;
|
||||
is_sneaking(): boolean;
|
||||
};
|
||||
// read only, what this client sees
|
||||
world: {
|
||||
|
||||
Reference in New Issue
Block a user