Skip to content

Instantly share code, notes, and snippets.

@NiclasOlofsson
Created January 3, 2016 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save NiclasOlofsson/33ad515e6d8c40d40d3d to your computer and use it in GitHub Desktop.
Save NiclasOlofsson/33ad515e6d8c40d40d3d to your computer and use it in GitHub Desktop.
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