C# 클래스 Sharpcraft.Library.Minecraft.Entities.Player

A minecraft player.
상속: Entity
파일 보기 프로젝트 열기: SijmenSchoon/Sharpcraft 1 사용 예제들

공개 메소드들

메소드 설명
Player ( int entityId, string name, Microsoft.Xna.Framework.Graphics.Texture2D skin = null, Position position = null, LookDirection direction = null, double stance = 0.0 ) : Microsoft.Xna.Framework.Graphics

Initialize a new instance of Player.

SetDirection ( LookDirection direction ) : void

Set the direction in which this player is heading.

SetDirection ( float yaw, float pitch ) : void

Set the direction in which this player is heading.

SetOnGround ( bool onGround ) : void

Set whether or not this player is currently on the ground (not falling).

SetPosition ( Position position ) : void

Updates the world position of this player.

SetPosition ( double x, double y, double z ) : void

Updates the world position of this player.

SetStance ( double stance ) : void

Set this player's stance.

메소드 상세

Player() 공개 메소드

Initialize a new instance of Player.
public Player ( int entityId, string name, Microsoft.Xna.Framework.Graphics.Texture2D skin = null, Position position = null, LookDirection direction = null, double stance = 0.0 ) : Microsoft.Xna.Framework.Graphics
entityId int The Entity ID of this player.
name string Name of the player.
skin Microsoft.Xna.Framework.Graphics.Texture2D The player skin.
position Position World position of the player (X,Y,Z).
direction LookDirection The direction the player is looking in (Yaw, Pitch).
stance double The stance of the player.
리턴 Microsoft.Xna.Framework.Graphics

SetDirection() 공개 메소드

Set the direction in which this player is heading.
public SetDirection ( LookDirection direction ) : void
direction LookDirection object defining the direction.
리턴 void

SetDirection() 공개 메소드

Set the direction in which this player is heading.
public SetDirection ( float yaw, float pitch ) : void
yaw float Yaw.
pitch float Pitch.
리턴 void

SetOnGround() 공개 메소드

Set whether or not this player is currently on the ground (not falling).
public SetOnGround ( bool onGround ) : void
onGround bool true if player is on ground (not falling), false otherwise.
리턴 void

SetPosition() 공개 메소드

Updates the world position of this player.
public SetPosition ( Position position ) : void
position Position Vector3 with XYZ position of player.
리턴 void

SetPosition() 공개 메소드

Updates the world position of this player.
public SetPosition ( double x, double y, double z ) : void
x double X position.
y double Y position.
z double Z position (height).
리턴 void

SetStance() 공개 메소드

Set this player's stance.
public SetStance ( double stance ) : void
stance double
리턴 void