public override Entity Create(Region tregion, byte[] data) { int itsbyte = Utilities.BytesToInt(Utilities.BytesPartial(data, PhysicsEntity.PhysicsNetworkDataLength, 4)); BlockInternal bi = BlockInternal.FromItemDatum(itsbyte); StaticBlockEntity sbe = new StaticBlockEntity(tregion, bi.Material, bi.BlockPaint); sbe.ApplyPhysicsNetworkData(data); return sbe; }
public override Entity Create(Region tregion, byte[] data) { int itsbyte = Utilities.BytesToInt(Utilities.BytesPartial(data, PhysicsEntity.PhysicsNetworkDataLength, 4)); BlockInternal bi = BlockInternal.FromItemDatum(itsbyte); StaticBlockEntity sbe = new StaticBlockEntity(tregion, bi.Material, bi.BlockPaint); sbe.ApplyPhysicsNetworkData(data); return(sbe); }