Created
January 3, 2016 18:28
-
-
Save NiclasOlofsson/33ad515e6d8c40d40d3d to your computer and use it in GitHub Desktop.
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 class TextEntity : Entity | |
{ | |
public TextEntity(Level level, string text, Vector3 pos) : base(64, level) | |
{ | |
NameTag = text; | |
KnownPosition = new PlayerLocation(pos); | |
HealthManager = new NoDamageHealthManager(this); | |
} | |
public override void OnTick() | |
{ | |
} | |
public override MetadataDictionary GetMetadata() | |
{ | |
var metadata = base.GetMetadata(); | |
metadata[15] = new MetadataByte(1); | |
return metadata; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment