This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private object _killSync = new object(); | |
public virtual void Kill() | |
{ | |
lock (_killSync) | |
{ | |
if (IsDead) return; | |
IsDead = true; | |
} | |
Health = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum TitleType | |
{ | |
Clear = 0, | |
Reset = 1, | |
Title = 2, | |
SubTitle = 3, | |
ActionBar = 4, | |
AnimationTimes = 5 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-10-21 20:42:28,553 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Entity ID: 17179867417 | |
2016-10-21 20:42:28,553 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Runtime Entity ID: 63 | |
2016-10-21 20:42:28,553 DEBUG MiNET.Client.MiNetClient - Entity Type: 33043 - 0x8113 | |
2016-10-21 20:42:28,554 DEBUG MiNET.Client.MiNetClient - Entity Family: 129 - 0x81 | |
2016-10-21 20:42:28,554 DEBUG MiNET.Client.MiNetClient - Entity Type ID: 19 - 0x13 Bat | |
2016-10-21 20:42:28,555 DEBUG MiNET.Client.MiNetClient - X: 52.5 | |
2016-10-21 20:42:28,555 DEBUG MiNET.Client.MiNetClient - Y: 4 | |
2016-10-21 20:42:28,556 DEBUG MiNET.Client.MiNetClient - Z: 20.5 | |
2016-10-21 20:42:28,556 DEBUG MiNET.Client.MiNetClient - Yaw: 0 | |
2016-10-21 20:42:28,556 DEBUG MiNET.Client.MiNetClient - Pitch: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using log4net; | |
namespace Votifier | |
{ | |
public class VotifierServer | |
{ | |
private static readonly ILog Log = LogManager.GetLogger(typeof(VotifierServer)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MiNET.Entities; | |
using MiNET.Utils; | |
using MiNET.Worlds; | |
namespace LEETGames.Utils | |
{ | |
public class FallingBlock : Mob | |
{ | |
public int BlockId { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int createdChunks = 0; | |
Stopwatch sw = new Stopwatch(); | |
sw.Start(); | |
foreach (KeyValuePair<ChunkCoordinates, ChunkColumn> valuePair in _chunkCache) | |
{ | |
ChunkCoordinates chunkCoordinates = valuePair.Key; | |
ChunkColumn chunkColumn = valuePair.Value; | |
if (chunkColumn != null && !chunkColumn.isAllAir) |
NewerOlder