Exemplo n.º 1
0
        public object ToNBT()
        {
            NBT nbt = new NBT();

            nbt.Set("id", Id.ToString());
            nbt.Set("Count", (short)1);
            nbt.Set("tag", this.nbt);
            return(nbt);
        }
Exemplo n.º 2
0
 public EntityModel(string tag, EntityType type)
 {
     this.type = type;
     this.tag  = tag;
     this.nbt  = new NBT();
 }
Exemplo n.º 3
0
 public void Value(NBT value)
 {
     Value(value.ToString());
 }
Exemplo n.º 4
0
 public abstract void MergeData(NBT nbt);
Exemplo n.º 5
0
 public Segment(NBT nbt) : base(nbt)
 {
 }
Exemplo n.º 6
0
 public Segment ShowEntity(NBT entity)
 {
     return((Segment)Set("hoverEvent", new Segment().Set("action", "show_text").Set("value", entity.ToString())));
 }
Exemplo n.º 7
0
 public NBT(NBT nbt)
 {
     this.map = new Dictionary <string, object>(nbt.map);
     this.str = nbt.str;
 }
Exemplo n.º 8
0
 public Item SetBlockEntityTag(NBT tag)
 {
     return(SetProperty("BlockEntityTag", tag));
 }
Exemplo n.º 9
0
 public Item(ResourceLocation id, NBT nbt)
 {
     this.Id  = id;
     this.nbt = nbt;
 }