This file contains 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) |
This file contains 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 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 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 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 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 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.Collections.Generic; | |
using System.Diagnostics; | |
using System.Threading; | |
using log4net; | |
namespace MiNET.Utils | |
{ | |
public class HighPrecisionTimer : IDisposable | |
{ |
This file contains 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
2017-06-18 23:38:35,422 DEBUG MiNET.Client.MiNetClient - Block Coordinates=X=112, Y=85, Z=10, Block ID=90, Metadata=2 | |
2017-06-18 23:38:35,422 WARN MiNET.Client.MiNetClient - > Receive: 44 (0x2c): McpeAnimate | |
2017-06-18 23:38:35,422 DEBUG MiNET.Client.MiNetClient - Animate: EID=4, Action ID=1 | |
2017-06-18 23:38:35,472 WARN MiNET.Net.Package - McpeEvent: Still have 9 bytes to read!! | |
41 d3 ff ff ff 1f 06 01 02 00 AÓÿÿÿ..... | |
2017-06-18 23:38:35,478 WARN MiNET.Client.MiNetClient - > Receive: 65 (0x41): McpeEvent | |
2017-06-18 23:38:35,478 WARN MiNET.Client.MiNetClient - > Receive: 14 (0x0e): McpeRemoveEntity | |
2017-06-18 23:38:35,480 WARN MiNET.Client.MiNetClient - > Receive: 61 (0x3d): McpeChangeDimension | |
2017-06-18 23:38:35,484 WARN MiNET.Client.MiNetClient - > Receive: 12 (0x0c): McpeAddPlayer |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<!-- Level 1 --> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> | |
<!-- Level 2 --> | |
</configSections> | |
<startup> |
This file contains 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.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Threading; | |
namespace MiNET.Utils | |
{ | |
public class HighPrecisionTimerManager | |
{ | |
private static readonly ConcurrentDictionary<Thread, List<HighPrecisionTimer>> Managers = new ConcurrentDictionary<Thread, List<HighPrecisionTimer>>(); |
OlderNewer