예제 #1
0
파일: Block.cs 프로젝트: keneo/Craft.Net
 /// <summary>
 /// Called when this block is right clicked by a player.
 /// </summary>
 /// <param name="world">The world in which the event occured</param>
 /// <param name="position">The location of the block being clicked</param>
 /// <param name="clickedBy">The player who clicked the block</param>
 /// <returns>False to override the default action (block placement)</returns>
 public virtual bool BlockRightClicked(World world, Vector3 position, PlayerEntity clickedBy)
 {
     return true;
 }
예제 #2
0
 /// <summary>
 /// Called when this block is right clicked by a player.
 /// </summary>
 /// <param name="world">The world in which the event occured</param>
 /// <param name="position">The location of the block being clicked</param>
 /// <param name="clickedBy">The player who clicked the block</param>
 /// <returns>False to override the default action (block placement)</returns>
 /// <remarks></remarks>
 public override bool BlockRightClicked(World world, Vector3 position, PlayerEntity clickedBy)
 {
     return false;
 }